embed fonts into PDFs, painlessly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
infn=$1 | |
outfn=`basename $infn .pdf`.still.pdf | |
# Embed fonts. | |
gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$outfn \ | |
-dCompatibilityLevel=1.5 -dPDFSETTINGS=/prepress -c .setpdfwrite -f $infn | |
# Strip metadata crap added by Ghostscript. | |
exiftool -Title="" $outfn | |
exiftool -Creator="" $outfn | |
exiftool -CreatorTool="" $outfn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment