

High compression: 72 dpi (small file size-may produce grainy or unreadable results in some cases, so try it and give it a shot).Gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -dNOPAUSE -dBATCH \ Medium compression (recommended): 150 dpi (medium file size).Gs -sDEVICE=pdfwrite -dPDFSETTINGS=/printer -dNOPAUSE -dBATCH \ Low compression: 300 dpi (large file size).Note: you may also add -dQUIET to suppress all output to stdout. Use Ghostscript ( gs) to compress input.pdf into output.pdf 2020), and there's no need to override those values. Note that I've removed the -dCompatibilityLevel=1.4 part of the command used in some other answers here (including the most-upvoted answer) because this table indicates that 1.5 or 1.7 are automatically used for this setting today (27 Dec. Referencing this answer and this answer, and after trying a bunch of the answers here, and doing a bunch of research and experimenting, I've come up with the following. Depending on the document source, you might want to reduce the color depth ( -depth argument).įor my other, pdfsizeopt-based answer, see here. I was able to achieve great compression ratios for scanned/photographed documents (depending on the settings).
Google pdf resizer zip#
You have the choice between BZip, Fax, Group4, JPEG, JPEG2000, Lossless, LZW, RLE or Zip as alternate compression methods (some only allow b/w images). jpeg compression might not be the best choice due to compression artifacts. For jpg it is between 1 to 100 with 100 the best quality, but lowest compression Higher pixel densities increase quality and size


-dPDFSETTINGS=/printer selects output similar to the Acrobat Distiller "Print Optimized" setting ( 300 dpi).-dPDFSETTINGS=/prepress output similar to Acrobat Distiller "Prepress Optimized" setting ( 300 dpi).-dPDFSETTINGS=/ebook for better quality, but slightly larger pdfs.-dPDFSETTINGS=/screen lower quality, smaller size.dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf Use the following ghostscript command: gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook \
