Created: by Pradeep Gowda Updated: Jun 03, 2023

See also: 100-page-book

Lulu specific notes

Fixing Embedded fonts error

When you are trying to publish a book via, you might encounter “embed fonts” error. This is the workaround I found on the web that uses ghostscript:

 -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 doc2.pdf

However, the resulting PDF looks fuzzier than the original one.

Resizing all pages of a PDF to a common size

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 ghostscriptsource:

gs -o /path/to/resized.pdf

Cropping PDFs

Self publishing tools



  • PrinceXML
  • Speedata Publisher to generate reports. XML->PDF. Uses LuaTeX. AGPL/Commercial license.
  • PreTeXt An authoring and publishing system for authors of textbooks, research articles, and monographs, especially in STEM disciplines. The best of DocBook, LaTeX, and HTML. Outputs: print, PDF, web, EPUB, Jupyter Notebooks, braille,. github; XML based syntax.

Web publishing


Book covers