PDF font issue: Libre Office wrong - Okular Okay

Hi all,

don’t know where to post. So let’s try here.

I from time to time receive PDF (forms) that need to be filled out. I use Libre Office for this as it’s convenient. But some companies send out their PDFs with fonts not being on my system. I even don’t want to install them.

Why can Okular display the page correctly although the font is NOT on my system?

I tried https://wiki.archlinux.org/title/LibreOffice#Troubleshooting to replace the font with something I have on my system but result is not satisfying.

Is there a way to make Libre Offce to behave like Okular without manual configuration with every incompatible PDF?

Current workaround is to use Master PDF Editor free. But I don’t want to flood my system with tools only needed from time to time.

Thanks for any advice or idea…

LibreOffice offers a specific feature, a font replacement table that can be configured according to the user’s needs, and is among the program’s options. If the table is configured correctly, LibreOffice replaces the fonts with those metrically compatible – or simply more similar – defined by the user, and this in most cases will prevent the document from looking different.

Okular - check which fonts are embedded in the final pdf

:v:

Thanks @anon11595408

The document I have has two fonts partly embedded. Okular can make use of them to display the document while Libre Office (for whatever reason) needs to have a replacement font installed on the system and can’t use the embedded temporarily, right?!

It’s not that. If you don’t want to install the used fonts directly (i.e. avoid installing various fonts used by some Windows users, not embedded when creating their pdf and send it to you, or you download it from them) - - -

  • THEN:
    LibreOffice offers their font-replacement table to seek the next matching fonts that are installed on your system. But you have to configure the table yourself.

Da läuft der Hase lang. :wink:

1 Like

The way I handle such files is by opening them in Inkscape with the Cairo importer, which turns the glyphs of embedded fonts to SVG paths. If you convert glyphs to paths, Inkscape will correctly open most PDFs. Then I fill out the form in Inkscape, using the Text Tool with one of the fonts I have installed on my system (usually the goofiest free version of Comic Sans I have), and export it to PDF.

The resulting PDF will be slightly larger in size, and the text of the form won’t be editable, but they deserve to get that for sending you such a crappy PDF.

2 Likes

Thanks for another way of getting this task done.

I used Master PDF Editor (free) from the Repo.

Opens file correctly. Inserted text and signature image. Save. Done. Quite simple.

That sounds a bit proprietary, not gonna lie…

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.