Depending on the document source, you might want to reduce the color depth ( -depth argument). I was able to achieve great compression ratios for scanned/photographed documents (depending on the settings). 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 -density: the pixel density in dpi (e.g.If you have a pdf with scanned images, you can use convert (ImageMagick) to create a pdf with jpeg compression (You can use this method on any pdf, but you'll loose all text informations).įor example: convert -density 200x200 -quality 60 -compress jpeg input.pdf output.pdf The exact settings for each of these, including their DPI values, are shown in the dozens of options in this table. /default selects output intended to be useful across a wide variety of uses, possibly at the expense of a larger output file./prepress selects output similar to Acrobat Distiller "Prepress Optimized" (up to version X) setting./printer selects output similar to the Acrobat Distiller "Print Optimized" (up to version X) setting. /ebook selects medium-resolution output similar to the Acrobat Distiller (up to version X) "eBook" setting./screen selects low-resolution output similar to the Acrobat Distiller (up to version X) "Screen Optimized" setting.Presets the "distiller parameters" to one of four predefined settings: Reference: : Controls and features specific to PostScript and PDF input -dPDFSETTINGS=/default selects output intended to be useful across a wide variety of uses, possibly at the expense of a larger output file.-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 \
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |