FindHao 8月前 126

convert *.jpg pictures.pdf
convert -density 200x200 -quality 60 -compress jpeg input.pdf output.pdf

If you have a pdf with scanned images, you can use convert to create a pdf with jpeg compression (You can use this method on any pdf, but you'll loose all text informations).

For example:

convert -density 200x200 -quality 60 -compress jpeg input.pdf output.pdf

Adjust density (e.g. 100x100) and quality to your needs.

Depending on your input jpeg compression might not be the best choice due to compression artifacts. 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). For details see here.

I was able to achieve great compression ratios for scanned/photographed documents (depending on the settings). Depending on the document source, you might want to reduce the color depth (-depthargument).


最新回复 (0)