I am trying to work with pdftk to check information from compressed PDF streams created by Nitro Reader, but pdftk will not deflate streams. It does not produce errors, but it seems to do nothing but reorder PDF objects. Here is a minimal example of one of these pdf files.
pdftk test.pdf output test-d.pdf uncompress
When I try to use pdftk for other PDF files, this works fine. If I manually extract the data streams and unzip them using zlib in Python, they will decompress correctly. Also, if I open the PDF in Adobe Reader and reload, pdftk works fine in the resulting pdf file.
I manually examined the Nitro PDF file and it seems to be a valid pdf file. I am very confused as to what is going on here.
As a background for this problem, I have hundreds of these PDF files, and I'm trying to search for specific keywords that I could do if I could automate decompression.
pdftk version 1.45
Windows 7 Home Premium SP1
Nitro Reader 2 Version 2.5.0.36
Thanks James
pdf pdftk
James duvall
source share