如何用ImageMagick剪切一系列A4 PDF页面上的长期PDF页面

发布于 2025-01-25 21:11:30 字数 444 浏览 2 评论 0原文

我有一个包含文本和图像元素的长期PDF。这里一个示例:

“长长的pdf”

如何将此页面分成一个带有mutiple a4页的PDF,其中第一页包含顶部位,下一页下面显示的内容,依此类推,直到最后一页将剩余的剩余位于底部。

当我将pdf“打印”到全宽模式下的新PDF(例如,在MacOS上的预览) 仅保存输入页的中间

我可以使用ImageMagick轻松执行此操作吗?


PS:如果生成所有页面太难了,则仅拥有一个包含输入PDF顶部的第一页也可以。

I have an overlong PDF containing text and image elements. Here an example:

Overlong PDF

How can I split this page into a PDF with mutiple A4 pages where the first pages contains the top bit, the next page what's shown underneath and so on until the last page which holds the leftover at the bottom.

When I just 'print' the PDF to an new PDF (e.g. in Preview on macOS) in full-width mode only the middle of the input page is saved.

Can I do this easily with ImageMagick?


ps: If generating all pages is too difficult, having just the first page containing the top of the input PDF would be OK too.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝海 2025-02-01 21:11:30

如果您的PDF宽度为72 DPI为595,则在ImageMagick 6中,您可以

convert image.pdf -crop 595x842 +repage +adjoin result.pdf

使用ImageMagick 7,您可以做到

magick image.pdf -crop "%[papersize:a4]" +repage +adjoin result.pdf

If your PDF width at 72 dpi is 595, then in Imagemagick 6, you can do

convert image.pdf -crop 595x842 +repage +adjoin result.pdf

If using Imagemagick 7, you can do

magick image.pdf -crop "%[papersize:a4]" +repage +adjoin result.pdf
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文