maxpmaxp / pdfreader

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

ValueError: BT operator without enclosing ET #62

Closed i0nathan closed 4 months ago

i0nathan commented 3 years ago

viewer.render() Traceback (most recent call last): File "", line 1, in File "/home/i0/.pyenv/versions/pdfreader/lib/python3.9/site-packages/pdfreader/viewer/pdfviewer.py", line 119, in render self.notify(obj) File "/home/i0/.pyenv/versions/pdfreader/lib/python3.9/site-packages/pdfreader/viewer/pdfviewer.py", line 110, in notify handler(obj) File "/home/i0/.pyenv/versions/pdfreader/lib/python3.9/site-packages/pdfreader/viewer/simple.py", line 112, in on_BT raise ValueError("BT operator without enclosing ET") ValueError: BT operator without enclosing ET

maxpmaxp commented 3 years ago

@i0nathan Can you attach your PDF please?

maxpmaxp commented 3 years ago

@i0nathan any updates? Can you attach your PDF please?

i0nathan commented 3 years ago

Hello, I can't upload the PDF since contains sensitive info, is there any other approach we can take?

Thanks

maxpmaxp commented 3 years ago

@i0nathan Can you set a breakpoint at pdfreader/viewer/simple.py, line 112 and dump

just before it fails please?

maxpmaxp commented 3 years ago

@i0nathan any updates?

maxpmaxp commented 4 months ago

Added a work around on #119