简体   繁体   English

在iOS上查看大型PDF的最佳方式是什么?

[英]What is the best way to view large PDFs on iOS?

I am currently using QLPreviewController to view PDFs (250MB+) However it cannot deal with real large files. 我目前正在使用QLPreviewController来查看PDF(250MB +)但是它无法处理真正的大文件。 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. 我还需要使用QLPreviewController自定义可能的视图。 What should I do? 我该怎么办? Use UIWebView instead? 使用UIWebView代替? Or will I have to use CGContextDrawPDFPage? 或者我必须使用CGContextDrawPDFPage吗? Using the latter, how will I get zooming implemented? 使用后者,我将如何实现缩放?

I would go with your suggestion of using a UIWebView. 我会建议您使用UIWebView。 Doing so will automatically give you zoom support and the UIWebView should handle loading extremely large PDF's. 这样做会自动为您提供缩放支持,UIWebView应该处理加载非常大的PDF。


If you have decided to go with Quartz, this link looks very promising for zoom support. 如果你决定使用Quartz, 这个链接看起来非常有希望获得缩放支持。

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

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