在iOS上查看大型PDF的最佳方式是什么? [英] What is the best way to view large PDFs on iOS?

查看:482
本文介绍了在iOS上查看大型PDF的最佳方式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前使用QLPreviewController查看PDF(250MB +)但它不能处理真正的大文件。我得到的信息,而不是整个文件已经加载或整个应用程序刚刚死。
我还需要自定义视图是可能使用QLPreviewController。
我该怎么办?使用UIWebView?还是我必须使用CGContextDrawPDFPage?
使用后者,我将如何实现缩放?

I am currently using QLPreviewController to view PDFs (250MB+) However it cannot deal with real large files. Either I get the info that not the whole file has been loaded or the whole app just dies. I also need to customize the view which is nit possible using QLPreviewController. What should I do? Use UIWebView instead? Or will I have to use CGContextDrawPDFPage? Using the latter, how will I get zooming implemented?

推荐答案

我会用你的建议使用UIWebView 。这样做会自动给你缩放支持,UIWebView应该处理加载极大的PDF文件。

I would go with your suggestion of using a UIWebView. Doing so will automatically give you zoom support and the UIWebView should handle loading extremely large PDF's.

如果你决定去与Quartz,此链接看起来很有前途用于缩放支持。

If you have decided to go with Quartz, this link looks very promising for zoom support.

这篇关于在iOS上查看大型PDF的最佳方式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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