pdf-crop-margins -v -p 0 -a -6 input.pdf
-v : Verbose
-p : how much percentage of margin to be retained. We want the bounding box triming all the white margins on all sides. So say 0%
-a : Note: first -p is applied to create a bounding box.
IN this option it applies further on the bounding box after -p is applied. we can remove or add margin. Negative means add margin to the bounding box. So it will add 10bp all around after cliping
删除边距的最佳方法是使用 pdfCropMargins
https://pypi.org/project/pdfCropMargins/
安装:
现在我们可以使用命令
pdf-crop-margins
以我们想要的方式裁剪 pdf我想裁剪所有页面,然后在四周添加 6bp 边距。我可以做到这一点
输出文件附有
_cropped
我检查了裁剪的文件,所有内容和链接都完好无损。