Pdf

From Bitnami MediaWiki
Revision as of 16:39, 27 October 2023 by User (talk | contribs) (Created page with "===Manipulating PDFs=== To shrink a pdf you can use ghostscript. gs -sDEVICE=pdfwrite -dCompatabilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputfile=o...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Manipulating PDFs

To shrink a pdf you can use ghostscript.

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