简体   繁体   中英

How to crop empty white space in PDF file using Preview on Mac?

There is a comic book PDF file which has a lot of white space at the bottom.

The content is almost half the length of the page size.

How to crop all pages in the PDF file?

I have tried imagemagick but the quality is poor.

convert -verbose -density 300 -interlace none -quality 100 output.pdf

In ImageMagick, try using a larger density and then resize by the inverse amount in percent. Here, I use density = 4*72 = 288 and then resize by 25% (1/4).

convert -density 288 image.pdf -resize 25% -fuzz 15% -trim +repage result.pdf

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM