When you are trying to publish a book via Lulu.com, you might encounter
“embed fonts” error. This is the workaround I found on the web that uses
ghostscript
:
gs -dSAFER -dNOPLATFONTS -dNOPAUSE -dBATCH -sDEVICE=pdfwrite \
-sPAPERSIZE=letter -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer \
-dCompatibilityLevel=1.4 -dMaxSubsetPct=100 -dSubsetFonts=true \
-dEmbedAllFonts=true -sOutputFile=new.pdf -f old.pdf
See also: Embed fonts in a PDF with pdflatex which shows a simpler technique:
pdf2ps doc.pdf
ps2pdf13 -dPDFSETTINGS=/prepress doc.ps doc2.pdf
However, the resulting PDF looks fuzzier than the original one.
This can happen if you are combining multiple PDF documents (say using
pdftk
) to make a compendium. You can resize all the pages to be of
the same size using ghostscript
–
source:
gs -o /path/to/resized.pdf
-sDEVICE=pdfwrite
-dPDFFitPage
-r300x300
-g2550x3300
/path/to/original.pdf