I have a PDF file that I would like to process on Linux. In particular, I would like to:
- Replace Type 3 fonts with Type 1 fonts
- Replace multiple subsets of the same font with one subset (the subsets are the result of including numbers in LaTeX, where each figure contains the font of the subset)
On Windows, these two steps are possible with Adobe Distiller (open the document file and print it into a new PDF document with the appropriate settings).
On Linux, I can multiply fonts with Ghostscript [1] but it seems like it cannot replace Type 3 fonts (all?) With Type 1 fonts or combine multiple subsets of the same font.
Any tips on how I can accomplish these two tasks with free tools?
(I know the answer How to convert a Type 3 font to a Type 1 font to PDF . However, I don't care if I theoretically lose the font information, as this conversation seems to work fine in Distiller).
[1] With arguments:
gs -dPDFA -dSAFER -dNOPLATFONTS -dNOPAUSE -dBATCH \ -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 \ -dPDFSETTINGS=/printer -dCompatibilityLevel=1.4 \ -dMaxSubsetPct=100 -dSubsetFonts=true \ -dEmbedAllFonts=true -sOutputFile=/tmp/tmp.pdf -f "$1"
linux fonts pdf ghostscript pdflatex
steve20
source share