Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: BT operator without enclosing ET #62

Closed
i0nathan opened this issue Dec 29, 2020 · 6 comments
Closed

ValueError: BT operator without enclosing ET #62

i0nathan opened this issue Dec 29, 2020 · 6 comments
Labels
needs example needs PDF fail to prove the issue

Comments

@i0nathan
Copy link

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
Copy link
Owner

maxpmaxp commented Jan 7, 2021

@i0nathan Can you attach your PDF please?

@maxpmaxp
Copy link
Owner

maxpmaxp commented Jan 25, 2021

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

@i0nathan
Copy link
Author

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

Thanks

@maxpmaxp
Copy link
Owner

maxpmaxp commented Jan 27, 2021

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

  • self.bracket_commands_stack
  • self.stream (dump it to a file if its too long)

just before it fails please?

@maxpmaxp
Copy link
Owner

@i0nathan any updates?

@maxpmaxp maxpmaxp changed the title ValueError: BT operadot without enclosing ET ValueError: BT operator without enclosing ET May 4, 2022
@maxpmaxp maxpmaxp added the needs example needs PDF fail to prove the issue label May 4, 2022
@maxpmaxp
Copy link
Owner

Added a work around on #119

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs example needs PDF fail to prove the issue
Projects
None yet
Development

No branches or pull requests

2 participants