Does PDFNet automatically handle ZIP files?



Does PDFNet unzip and show the list of files in the viewer?


PDFNet does not automatically handle zip archives, since the handling of zip archive can vary based on your requirements. (For example, it’s unclear what PDFNet’s behaviour would be if the zip archive contained anything besides a single PDF document.) So, to keep the library as flexible as possible, PDFNet enables you to handle zip archives however you’d like.

If you’d like to unzip the archive, you should use the standard APIs for doing so, such as using SSZipArchive:

Note that if you’re asking about PDF compression, that is usually applied within the PDF document itself. The images and vector content can be compressed using a variety of schemes. (If you’d like to learn more about PDF internals, may be a good place to start.)