调整许多PDF的大小 [英] Resize many PDFs

查看:75
本文介绍了调整许多PDF的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写的程序有很多(约1000张)多页PDF.

I have many (around 1000) multiple-page PDFs for a program I am writing.

问题在于它们中的许多页面大小不一致,即使有时在同一文档中也是如此.有人知道我可以以编程方式浏览文件并调整页面大小以达到所需的方式吗?可以使用任何语言.

The problem is that many of them are inconsistent about page size, even within the same document at times. Does anyone know of a way I could programmatically go through the files and resize the pages to what I want? This can be in any language.

我可以在Adobe Acrobat Pro中完成此操作,但是最终有很多事情要花很长时间.我可以在其中调整大小的唯一方法是从文件中添加背景,然后选择我要调整大小的文件.

I can accomplish this in Adobe Acrobat Pro, but there are so many that would end up taking a long, long time. The only way I can get it to resize there is to add a background from a file, and then choosing the file i want to resize.

推荐答案

通常, PDFtk 非常适合此类问题.它可以让您将所有内容拆开,并在命令行上重新排序/调整大小/修改页面.

Generally, PDFtk is a good fit for this kind of problems. It will let you pull everything apart, and reorder/resize/modify pages on the command line.

这篇关于调整许多PDF的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆