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

Support zipped jpegs #937

Closed
pietermarsman opened this issue Jan 16, 2024 · 0 comments · Fixed by #938
Closed

Support zipped jpegs #937

pietermarsman opened this issue Jan 16, 2024 · 0 comments · Fixed by #938

Comments

@pietermarsman
Copy link
Member

Bug report

In #906 an pdf is added that contains an image that is both zip and jpeg encoded. The current code export this as a bmp, it is not recognized as a jpeg.

PYTHONPATH=. python tools/pdf2txt.py samples/contrib/issue_495_pdfobjref.pdf --output-dir images

Outputs a Xop2.bmp in the images directory. This should be a jpeg because it has a FlateDecode and DCTDecode filter. So it is a zipped jpeg.

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.

1 participant