unoconv / unoserver

MIT License
495 stars 69 forks source link

Embedded Fonts Not Used During Conversion #77

Closed tanasecucliciu closed 1 month ago

tanasecucliciu commented 11 months ago

Hello,

I've been using the unoserver and unoserver-docker projects for document conversions, and they've been extremely helpful. However, I've run into an issue when converting .doc files that contain embedded fonts.

I found a workaround for the issue by manually adding the same font into the Docker container when running with the --headless option. In that case, the doc-to-pdf conversion correctly uses the font. However, I believe it would be ideal if unoserver could use the embedded font in the .doc file itself, eliminating the need for this manual step.

I'm not sure if this is a unoserver issue or a LibreOffice issue so feel free to close it if I didn't post it correctly.

I'm attaching the original .doc & .docx files, as well as the resulting .pdf files for context:

unoserver_embedded_fonts_issue.zip

Please let me know if there is a way to fix this issue or if I can provide additional information to assist in troubleshooting.

Thanks!

regebro commented 10 months ago

That's interesting, I was not able to replicate this with LibreOffice 7.3.7.2. I converted both the doc file and the docx file, each with --headless --invisible and with only --invisible, and the result was the same, and similar to your "head" files.