Pdf

From Bitnami MediaWiki
Jump to navigation Jump to search

Manipulating PDFs

To shrink a pdf you can use ghostscript. (Instructions from [

gs -sDEVICE=pdfwrite -dCompatabilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputfile=output.pdf input.pdf

The -dPDFSETTINGS=/ flag sets the resolution. There are four options

  • =/screen - lowest quality at 72dpi (this is more than adequate for high quality PDFs)
  • =/ebook - better quality at 150dpi
  • =/prepress - highest quality at 300dpi
  • =/default - system default; may result in inflated file size