简体   繁体   English

是否有工具可以通过坐标分解pdf或tiff?

[英]Are there tools to dissect a pdf or tiff by coordinates?

I am attempting to programmatically "chop up" a pdf or tiff image into several smaller regions for use on mobile devices (android). 我正在尝试以编程方式将pdf或tiff图像“切成”几个较小的区域,以便在移动设备(android)上使用。 The layout of the original document will always be the same, so using predefined coordinates of rectangles would be ideal. 原始文档的布局将始终是相同的,因此使用矩形的预定义坐标将是理想的。

Is there any software that does this already? 有没有已经做到这一点的软件? If not, what tools are there to accomplish this myself? 如果没有,有什么工具可以自己完成?

I am assuming you are referring to doing this on your development machine, as part of a build process. 我假设您是在构建过程中指的是在开发计算机上执行此操作。 If so, try ImageMagick . 如果是这样,请尝试ImageMagick

One method of "chopping up" a PDF would be to duplicate the page N times, and set a "crop box" on each page to only show the portion you wanted. “切碎” PDF的一种方法是将页面重复N次,并在每页上设置一个“裁剪框”以仅显示所需的部分。

This can be done quite efficiently in terms of file size... just a little overhead for the page definition. 就文件大小而言,这可以非常高效地完成...页面定义只需要一点点开销。 All the page content, resources, and so forth can be shared. 可以共享所有页面内容,资源等。

The details of this are specific to your environment. 具体细节取决于您的环境。 As we don't know your environment, and my crystal ball is on the fritz again, I can't be of much more help. 由于我们不知道您的环境,而且我的水晶球又炸了,所以我无济于事。

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

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