I would like to ask a question about the PDF library used by ONLYOFFICE.
Just now, I found a WASM file in the source directory of ONLYOFFICE/sdkjs repository: pdf/src/engine/drawingfile.wasm, but I didn’t find any information about the PDF parsing library and rendering engine used by ONLYOFFICE PDF Editor in your documentation. So I want to know which PDF library ONLYOFFICE PDF Editor uses.
Hello @micro201014
Indeed, the drawingfile.wasm file is related to our rendering engine, it’s self-written.
Could you please clarify what information you need regarding this file?
Since you wrote these WASM files yourself, why don’t you make the source code of these WASM files publicly available?
All source code is publicly available. The drawingfile.wasm file is compiled from this repository: GitHub - ONLYOFFICE/core: Server core components which are a part of ONLYOFFICE Document Server
Sorry. I didn’t study it carefully.
In addition, I found 4 more WASM files in the ONLYOFFICE/sdkjs repository:
- common/hash/hash/engine.wasm (
core/DesktopEditor/xmlsec/src/wasm/hash/*
)
- common/zlib/engine/zlib.wasm (
core/OfficeUtils/src/zlib-1.2.11/*
)
- common/spell/spell/spell.wasm (
core/Common/3dParty/hunspell/*
)
- common/libfont/engine/fonts.wasm (
core/DesktopEditor/fontengine/*
)
And the source directory of pdf/src/engine/drawingfile.wasm should be core/PdfFile/*
.
Are the above conclusions correct?
Hello @micro201014
Sorry for the late reply.
The rendering core is compiling from hundreds of files, but yes, it seems that the mentioned files are related to PDF rendering.
If you can share your final goal, it would be easier to assist you.
P.S. If you’re going to change the source code, it’s better to create a topic on GitHub, since we do not provide support for modified source code on the forum.
@Alexandre
Do the build instructions in build_tools/README.md include the build process for the PDF rendering engine? If not, can you provide a build method for the PDF rendering engine?