maxpmaxp / pdfreader

Python API for PDF documents
MIT License
113 stars 26 forks source link

Work around wrong stream `Length` #68

Closed maxpmaxp closed 3 years ago

maxpmaxp commented 3 years ago

Sample indirect objects:

141 0 obj
<</Subtype/Form/BBox[0 0 28.80002 11.99902]/Length 32/Type/XObject>>
stream

endstream
endobj
170 0 obj
<</Subtype/Form/BBox[0 0 84.39999 11.99902]/Length 32/Type/XObject>>
stream

endstream
endobj

Acrobat Reader displays an error message, but still shows the doc.

Desired behavior: