简体   繁体   English

如何在Mac上使用“预览”在PDF文件中裁剪空白区域?

[英]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. 有一个漫画书PDF文件,其底部有很多空白。

The content is almost half the length of the page size. 内容几乎是页面大小的一半。

How to crop all pages in the PDF file? 如何裁剪PDF文件中的所有页面?

I have tried imagemagick but the quality is poor. 我尝试过imagemagick但是质量很差。

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. 在ImageMagick中,尝试使用较大的密度,然后按百分比反比例调整大小。 Here, I use density = 4*72 = 288 and then resize by 25% (1/4). 在这里,我使用密度= 4 * 72 = 288,然后将尺寸调整为25%(1/4)。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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