tsboh / origami-pdf

Automatically exported from code.google.com/p/origami-pdf
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Not able to parse XRef streams #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. open a pdf that contains an xref stream (see attached script and pdf)

What is the expected output? What do you see instead?
It should just parse the xref table, even if it is in an xref stream, when it 
is in an xref stream you see: 
[info ] Warning: Unable to parse xref table! Xrefs might be stored into an XRef 
stream.

What version of the product are you using? On what operating system?
origami 1.2.3, ruby 1.9.2-p0

Please provide any additional information below.

I believe that the cairo library (http://cairographics.org), which is 
responsible for doing the heavy lifting of pdf generation for a lot of 
different applications does this.

Original issue reported on code.google.com by Dennison...@gmail.com on 5 Jan 2012 at 3:51

Attachments:

GoogleCodeExporter commented 8 years ago
Origami does use xref streams, regardless of this warning. The information 
regarding this was actually only printed out when using the DEBUG verbose level.

>>> PDF.read('xref_stream.pdf', :verbosity => Parser::VERBOSE_DEBUG)
...
[info ] Warning: Unable to parse xref table! Xrefs might be stored into an XRef
stream.
[info ] ...Parsing trailer...
[debug] Found a XRefStream for this revision at 219 0 R

I moved this message to be printed in the WARNING level to avoid confusion.
Thank you for reporting this.

Original comment by guilla...@security-labs.org on 6 Apr 2012 at 4:16