Ghostscript: Difference between revisions
Jump to navigation
Jump to search
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..." |
|||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
== Reduce File size of scanned PDF == | == Reduce File size of scanned PDF == | ||
<code>gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf</code> | <code>gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dDetectDuplicateImages -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf</code> | ||
<code>-dPDFSETTINGS=/screen</code> lower quality, smaller size.<br /> | <code>-dPDFSETTINGS=/screen</code> lower quality, smaller size.<br /> | ||
Line 11: | Line 11: | ||
<code>-dPDFSETTINGS=/printer</code> selects output similar to the Acrobat Distiller "Print Optimized" setting<br /> | <code>-dPDFSETTINGS=/printer</code> selects output similar to the Acrobat Distiller "Print Optimized" setting<br /> | ||
<code>-dPDFSETTINGS=/default</code> selects output intended to be useful across a wide variety of uses, possibly at the expense of a larger output file.<br /> | <code>-dPDFSETTINGS=/default</code> selects output intended to be useful across a wide variety of uses, possibly at the expense of a larger output file.<br /> | ||
To combine PDFs, add more input files on the end of this command. |
Latest revision as of 16:59, 5 June 2017
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 -dDetectDuplicateImages -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.
To combine PDFs, add more input files on the end of this command.