I have a database where a pdf was encoded (possibly compressed) and stored in a blob field. What is the best method to decode that blob back into a pdf using perl? And what are some of the common methods of encoding a pdf for storage in a blob field?
You would need to know what algorithm (if any) was used to compress the PDF, and use the reverse for uncompression. There are many compression algorithms available and suitable, such as gzip, zip, bz2, etc.
Sure, all available decompressors can be run from Perl. But first you need to know which one to use, or do some experimentation to find out which decompressor produces the goods.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.