Ghostscript

From Psygen Wiki
Revision as of 16:56, 5 June 2017 by Admin (talk | contribs) (Created page with "Ghostscript is a program used to convert and manage PDF files from the command line. == Reduce File size of scanned PDF == <code>gs -sDEVICE=pdfwrite -dCompatibilityLevel=1...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Ghostscript is a program used to convert and manage PDF files from the command line.


Reduce File size of scanned PDF

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

-dPDFSETTINGS=/screen lower quality, smaller size.
-dPDFSETTINGS=/ebook for better quality, but slightly larger pdfs.
-dPDFSETTINGS=/prepress output similar to Acrobat Distiller "Prepress Optimized" setting
-dPDFSETTINGS=/printer selects output similar to the Acrobat Distiller "Print Optimized" setting
-dPDFSETTINGS=/default selects output intended to be useful across a wide variety of uses, possibly at the expense of a larger output file.