pdflat-auto flattens every PDF in the current directory with no prompts.
- flattens every
*.pdfin the current working directory via Ghostscript (-dPreserveAnnots=false) - always moves the pre-flatten originals into
orig/, with no confirmation step
See also pdflat (same flattening, but interactive and takes explicit filenames) and pdflat-single (flattens exactly one file).
- macOS
- Linux
- Ghostscript (
gs)
Install Ghostscript, then run it from the directory containing the PDFs you want flattened:
cd ~/Documents/forms
pdflat-autoFlatten everything in the current directory:
pdflat-auto- Takes no arguments and no confirmation prompt — running it processes every
*.pdfin the current directory immediately. - Originals always end up in
./orig/(created if it doesn't exist).
- Because there's no confirmation step, only run this from a directory where "flatten everything here" is actually what you want — use
pdflatif you want to review the file list first.