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

Fail to list images having more than 1 filter #329

Closed
renard opened this issue May 5, 2021 · 6 comments
Closed

Fail to list images having more than 1 filter #329

renard opened this issue May 5, 2021 · 6 comments
Assignees

Comments

@renard
Copy link

renard commented May 5, 2021

On some PDF document images can have several filters such as FlateDecode and DCTDecode.
pdfcpu skip such image with following log:

INFO: 2021/05/05 14:22:27 ExtractImage(72): skip img with more than 1 filter: FlateDecode,DCTDecode

Is there a particular reason for that? is is possible to decompress the image before applying the DCTDecode filter?

@hhrutter
Copy link
Collaborator

hhrutter commented May 5, 2021

Serious support of multi filter streams need proper test cases.
I do not have any test PDFs available, that's the simple reason this has not been implemented.
Also there are a lot of possible combinations.
If you can share something we can make this work at least for the combinations we have test files for.

@renard
Copy link
Author

renard commented May 6, 2021

I have some copyrighted material.
If you want I can share something via your private email.

Let me know.

@hhrutter
Copy link
Collaborator

hhrutter commented May 6, 2021

You find my email at https://github.com/hhrutter
👍 This will help with the implementation but I also need some small files for a testcase.
Maybe there is a free PDFWriter out there that produces multifilter XObject image streams.
@petervwyatt Do you have any insights into this?

@petervwyatt
Copy link

@hhrutter I emailed you privately.

@hhrutter
Copy link
Collaborator

This issue is work in progress.

@hhrutter hhrutter self-assigned this May 15, 2021
hhrutter added a commit that referenced this issue Jul 11, 2021
@hhrutter
Copy link
Collaborator

Fixed with v0.3.12

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

No branches or pull requests

3 participants