开发者

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

开发者 https://www.devze.com 2023-02-13 13:36 出处:网络
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 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? 开发者_JAVA技巧Or will I have to use CGContextDrawPDFPage? Using the latter, how will I get zooming implemented?


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消