What is the best way to view large PDF files in iOS?

I am currently using QLPreviewController to view PDF files (250 MB +). However, it cannot process real large files. Either I get information that not the whole file was downloaded, or the whole application just dies. I also need to customize a view that cannot be used with QLPreviewController. What should I do? Use a UIWebView instead? Or will I have to use CGContextDrawPDFPage? Using the latter, how can I implement scaling?

+3
source share
1 answer

I would recommend using a UIWebView. This will automatically give you support for scaling, and UIWebView should handle loading extremely large PDF files.


If you decide to go with Quartz, this link looks very promising to support scaling.

0
source

Source: https://habr.com/ru/post/1795069/


All Articles