ONLYOFFICE / DesktopEditors

An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
https://www.onlyoffice.com
Other
2.64k stars 311 forks source link

providing a WebAssembly version to covert doc to pdf #1575

Closed lqzerogg closed 1 month ago

lqzerogg commented 1 month ago

This issue is unique.

Your idea.

I'm interested in leveraging OnlyOffice to generate PDF documents for my clients. While the overall experience has been excellent, I've encountered a challenge with the performance of converting .docx files to .pdf on my server, which is notably sluggish. To alleviate the significant server-side workload, could you offer a WebAssembly-based solution that enables my JavaScript code to invoke the API for docx-to-pdf conversion on the client-side, thus optimizing resource utilization and improving efficiency?

K0R0L commented 1 month ago

Hello. To convert on the server, use (DocumentBuilder). It is not possible to write to PDF in js/webasm code at the moment.