我们如何统一所有PDF纸张尺寸

发布于 2025-02-09 14:30:37 字数 59 浏览 1 评论 0原文

什么实用程序,其语法使用情况如何,可以以最简单的方式在Linux上统一所有PDF纸张,最好由CLI统一?

What utility, How's its syntax usage, which can uniform all PDF paper sizes on Linux the simplest way, preferably by CLI?

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

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

发布评论

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

评论(1

昵称有卵用 2025-02-16 14:30:37

您可以给出 ghostscript 尝试;它是用于使用PDF文件的多功能工具。

这样的东西可能对您有用:

gs -o output.pdf -sDEVICE=pdfwrite -sPAPERSIZE=a4 -dPDFFitPage input.pdf ...

如果您想要的纸张大小不在已知的纸张尺寸,您可以通过-ddevicewidthpoints-ddeviceheightpoints给出点(1/72的一英寸)的自定义纸张尺寸。

You could give Ghostscript a try; it is a versatile tool for working with PDF files.

Something like this might work for you:

gs -o output.pdf -sDEVICE=pdfwrite -sPAPERSIZE=a4 -dPDFFitPage input.pdf ...

If the paper size you want is not on the list of known paper sizes, you can give a custom paper size in points (1/72ths of an inch) by -dDEVICEWIDTHPOINTS and -dDEVICEHEIGHTPOINTS.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文