You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by Ad...@swmc.com on 2010/08/26 21:36:48 UTC

putting ObjStm objects into a readable format

Does anyone have any code which will read all the ObjStm objects, and then 
write them out without the FlateDecode filter?  If not, any suggestions on 
how to iterate over these and remove the compression?  It'd be much easier 
to manually look through the file in a text editor if I could see all the 
objects in the file.

---- 
Thanks,
Adam


?  Click here to submit conditions  

This email and any content within or attached hereto from  Sun West Mortgage Company, Inc.  is confidential and/or legally privileged. The information is intended only for the use of the individual or entity named on this email. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this email information is strictly prohibited, and that the documents should be returned to this office immediately by email. Receipt by anyone other than the intended recipient is not a waiver of any privilege. Please do not include your social security number, account number, or any other personal or financial information in the content of the email. Should you have any questions, please call  (800) 453 7884.   

RE: putting ObjStm objects into a readable format

Posted by Ryan Nideffer <ry...@everyonecounts.com>.
I use pdftk along with a vim script for easy viewing of PDF streams:

http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/

Ryan

-----Original Message-----
From: Adam@swmc.com [mailto:Adam@swmc.com] 
Sent: Thursday, August 26, 2010 12:37 PM
To: dev@pdfbox.apache.org
Subject: putting ObjStm objects into a readable format

Does anyone have any code which will read all the ObjStm objects, and then 
write them out without the FlateDecode filter?  If not, any suggestions on 
how to iterate over these and remove the compression?  It'd be much easier 
to manually look through the file in a text editor if I could see all the 
objects in the file.

---- 
Thanks,
Adam


?  Click here to submit conditions  

This email and any content within or attached hereto from  Sun West Mortgage Company, Inc.  is confidential and/or legally privileged. The information is intended only for the use of the individual or entity named on this email. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this email information is strictly prohibited, and that the documents should be returned to this office immediately by email. Receipt by anyone other than the intended recipient is not a waiver of any privilege. Please do not include your social security number, account number, or any other personal or financial information in the content of the email. Should you have any questions, please call  (800) 453 7884.   

Re: putting ObjStm objects into a readable format

Posted by Andreas Lehmkuehler <an...@lehmi.de>.
Hi

Am 26.08.2010 21:36, schrieb Adam@swmc.com:
> Does anyone have any code which will read all the ObjStm objects, and then
> write them out without the FlateDecode filter?  If not, any suggestions on
> how to iterate over these and remove the compression?  It'd be much easier
> to manually look through the file in a text editor if I could see all the
> objects in the file.
Have a look at PDDocument.dereferenceObjectStreams(). I never tested it but 
probably it is a good starting point.

BR
Andreas Lehmkühler