convert合并多个jpg到pdf并压缩

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).

https://askubuntu.com/questions/113544/how-can-i-reduce-the-file-size-of-a-scanned-pdf-file



Reference:

https://askubuntu.com/questions/246647/jpeg-files-to-pdf

最新回复 (0)
全部楼主
返回