Preflight Action to Detect and Fix Missing Fonts in PDFs

Post Reply
lucaspalm
Newbie
Posts: 1
Joined: Wed Jan 21, 2026 8:55 am

Preflight Action to Detect and Fix Missing Fonts in PDFs

Post by lucaspalm »

Hi everyone,

I’m working on a Preflight Profile for a workflow where we frequently receive PDF files with missing fonts. While the Preflight report correctly flags these issues, I’d like to automate a bit further:

- Detect missing fonts via Preflight,

- Replace them with specified fallback fonts where possible,

- Log the replacements in a report for review.

Does anyone here have experience writing a Preflight Fixup or JavaScript tool that can:

- Check for missing fonts in a PDF,

- Substitute them automatically with a predefined list,

- Output a summary of changes?

Any pointers to sample profiles, scripts, or best practices (especially regarding fonts with similar metrics) would be greatly appreciated.

Thanks in advance!
User avatar
magnussandstrom
Advanced member
Posts: 548
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Re: Preflight Action to Detect and Fix Missing Fonts in PDFs

Post by magnussandstrom »

Hi! Here is a flow that embeds missing fonts, and if that’s not successful, it replaces them with Helvetica. Maybe this could be a starting point?

You need to change the font directory in the PitStop element settings.

https://tinyurl.com/y9vv39je
Post Reply