Question

Consider this PDF file for example. The text in this file appears scrambled when opened with Safari or Preview. However, the PDF is formatted fine when opened with Adobe Acrobat Reader DC or most 3rd party web browsers including but not limited to Gecko-based Firefox and Chromium-based Google Chrome, Microsoft Edge and Opera.

I wondered if it is because of some of the embedded fonts in the PDF file which perhaps I needed to install on my mac. So, I searched for these fonts and installed them on my system but to no avail. Perhaps it is a bug?

How would you deal with such PDF files when you want to primarily use Preview?


EDIT: I am using macOS Catalina 10.15.6 and Preview 11.0. In the attached screenshot, the left rendering is by Preview and the right one is by Adobe Acrobat Reader DC.

Comparison of Preview and Acrobat Reader DC

Was it helpful?

Solution

The PDF does seem to display incorrectly on Catalina, but not on other versions of macOS.

Preflighting the PDF in Acrobat flags several instances of fonts that are not embedded. Acrobat and other versions of macOS seem to be able to substitute the system Arial and Times New Roman, but Catalina does not. I'd suggest that is the bug.

Exporting from Acrobat as PostScript and re-distilling will produce a PDF that works in Catalina.

Exporting from Preview in another version of macOS will also produce a version that works in Catalina. (Exporting, not just Save As..)

Ghostscript produces a single blank page when trying to process the PDF.

The file was originally created using Acrobat 3, in 2001 on some Windows OS. While such systems should have been creating perfectly decent PDFs, something seems to have gone wrong here.

OTHER TIPS

Would like to propose a solution or at least an idea to give it a try:

If your issue is that text doesn't show when using the quick look preview of a pdf (the one that shows documents by pressing spacebar on a selected file no matter where in the system: emails, file browser, etc), make sure to check if there's anything weird on your 'Font Book'. Open that, go to all fonts, select them all, make sure to click on 'Download' if the option appears on the right side and it could also say that there are duplicates. I did it all in one shot but I think the duplicate fonts warning is what might have been the culprit.

Summary:

  1. Open Font Book app.
  2. Go to all fonts and select them all.
  3. Click Download if that option visibly appears on the UI (around the top right of the font book frame). Wait for it to finish.
  4. Resolve Duplicates (bottom right of the window frame). I chose the "resolve automatically" option.

This fixed it for me. Hope it helps.

EDIT: forgot to mention, regarding the question. That maybe this font fix might also help with the scrambling issue found. In my case the text was invisible but it was there, I could select it, copy it and paste it somewhere else to finally see it. The text scrambling sounds dangerously close to be fixable by the same steps.

Opinion: I know it's old but that's why it's great to not close threads (like Reddit does), I just managed to find a solution and had passed by this very same thread before (and many others some of which are sadly now closed).

Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange
scroll top