lpireyn/pi-ocelot — Issue #6: Improve parsing of stream objects
Author: lpireyn
Created: 2012-02-05 22:26:23+00:00
State: open
Labels: Improvement

The PDF parser currently delimits stream objects by the following sequence:

"endstream" ( )+ "endobj"

This could cause the premature end of a stream object in the very unlikely event of an unfiltered content containing a sequence matching the one above.

Ideally, the parser should use the Length entry in the stream dictionary to know the actual length of the stream object. This, however, prevents incremental, streamed parsing.