I just spent an afternoon chasing down an issue that was roughly:
- Fonts were clipping in output PDFs
- They were clipping because there were referenced fonts in the PDF (Times New Roman) that weren't embedded (LibreOffice (LO) measured with a fallback font that wasn't embedded, so the rectangles were too small)
- These fonts came from PDF form fields
- Fortunately, the was already a solution: set exportFormFields=false, which was kind of unexpected to have layout implications to me (a neophyte in all this)
Maybe it would be good to add a note that setting this may fix formatting/clipping issues with fallback fonts?
https://gotenberg.dev/docs/convert-with-libreoffice/convert-to-pdf#native-flattening-libreoffice
(I'd suggest an edit but this would cause bureaucracy misery - see my contribution history haha)
As an aside, we are switching to gotenberg from a half baked docx to pdf solution, and gotenberg has been fantastic. Thank you for such an excellent project.
(do you think this is an issue with LO, that it isn't embedding the form font even if we've told it to? I think it was generating PDF/A files that still had non-embedded fonts)
I just spent an afternoon chasing down an issue that was roughly:
Maybe it would be good to add a note that setting this may fix formatting/clipping issues with fallback fonts?
https://gotenberg.dev/docs/convert-with-libreoffice/convert-to-pdf#native-flattening-libreoffice
(I'd suggest an edit but this would cause bureaucracy misery - see my contribution history haha)
As an aside, we are switching to gotenberg from a half baked docx to pdf solution, and gotenberg has been fantastic. Thank you for such an excellent project.
(do you think this is an issue with LO, that it isn't embedding the form font even if we've told it to? I think it was generating PDF/A files that still had non-embedded fonts)