简体   繁体   English

在Objective-C中获取多页pdf文档中单页的大小

[英]Get size of single pages in a multi-page pdf document in objective-c

I am writing an app in objective-c that splits multi-page pdf files into several files. 我正在Objective-C中编写一个将多页pdf文件拆分为几个文件的应用程序。 In order to control the size of the resulting split files I am looking for a way to progammatically get the size of the single pages in the multi-page pdf file. 为了控制生成的拆分文件的大小,我正在寻找一种以编程方式获取多页pdf文件中单页大小的方法。 Could not find anything in the APIs. 在API中找不到任何内容。 Any help is appreciated. 任何帮助表示赞赏。

There is no such information in iOS/OS X PDF related APIs. 与iOS / OS X PDF相关的API中没有此类信息。 Due to the structure of PDF files computing the size a PDF page occupies on disk is quite complicated. 由于PDF文件的计算结构,PDF页面在磁盘上占据的大小非常复杂。 Also because pages can share resources, the sum of separate page sizes will not equal the size of the final file. 同样因为页面可以共享资源,所以单独页面大小的总和将不等于最终文件的大小。

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

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