I'm trying to generate a PDF from a previously generated DOCX file in NodeJS. I'm using NestJS and TypeScript. I have tried many ways, but everything fails:
- @nativedocuments/docx-wasm: NativeDocuments isn't working anymore.
- word2pdf: Is archived at github, and unavailable at npm.
- docx-pdf: Generates an unstyled pdf. It removes my tables, indentation, justified text, etc.
- libreoffice-convert: Throws a window error: The application cannot be started. The configuration file "C:/Program Files/LibreOffice/program/bootstrap.ini" is corrupt (But LibreOffice software is working with no problem).
Do you know some workaround to the problems I got with any of the previously mentioned docx to pdf alternatives? Or maybe some other alternative that I can use (For free, please)?
Thank you in advance!