Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export to PDF by using LibreOffice's binary #2755

Open
Pierstoval opened this issue Feb 21, 2025 · 0 comments
Open

Export to PDF by using LibreOffice's binary #2755

Pierstoval opened this issue Feb 21, 2025 · 0 comments
Assignees

Comments

@Pierstoval
Copy link

Pierstoval commented Feb 21, 2025

So far, a few PDF exporters have a bridge in PHPWord, but the output depending on the library can be a bit inconsistent (latest example to date: #2534, apparently).

With LibreOffice, we can use a script like the ones suggested in the official docs: https://help.libreoffice.org/latest/en-US/text/shared/guide/pdf_params.html

The documentation must be taken in account because the soffice binary might have several different versions, leading to a possible maintenance burden on the parameters depending on the versions.
(as example, on one of my project, I convert some OpenDocument files into PDF via this command: soffice --headless --convert-to pdf:writer_pdf_Export --outdir {{output}} {{input}} ).

Issue asked gently by @Progi1984 , so here it is 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants