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

Failure to extract image as Pillow image ( #99

Closed
lisch opened this issue Jul 21, 2022 · 1 comment · Fixed by #100
Closed

Failure to extract image as Pillow image ( #99

lisch opened this issue Jul 21, 2022 · 1 comment · Fixed by #100

Comments

@lisch
Copy link

lisch commented Jul 21, 2022

Running the test script on the sample file produces a traceback.

Traceback (most recent call last):
  File "./test.py", line 9, in <module>
    image = viewer.canvas.images[name].to_Pillow()
  File "/home/rhlisch/.local/lib/python3.7/site-packages/pdfreader/pillow.py", line 71, in to_Pillow
    my_cs, base_cs, hival, lookup = cs[0], cs[1], cs[2], cs[3].filtered
AttributeError: 'HexString' object has no attribute 'filtered'
@maxpmaxp
Copy link
Owner

@lisch Fixed on master. Thanks for reporting! Feel free to contribute btw :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants