Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

How do you find if a PDF is compressed or not?

Question

Is there a library function which can tell whether or not a PDF file is compressed or not?

Answer

There isn't an easy way to check if a PDF contains compressed elements or not. There is not a PDF wide compression option, instead various different objects and streams in PDF files can be compressed individually, using different compression methods. So if you wanted to determine if a PDF contained any compression at all you would need to check every single object and stream in the PDF to see if it uses compression.

The public API for Quick PDF Library does not currently provide this functionality.


© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum