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

Processing deflated CCITT to JBIG2 "/ Filter /FlateDecode /CCITT" to "/Filter /JBIG2" #128

Open
maadjordan opened this issue Jul 25, 2019 · 5 comments

Comments

@maadjordan
Copy link

To add processing deflated CCITT stream to JBIG2 encoding.

@rbrito
Copy link

rbrito commented Jul 25, 2019 via email

@maadjordan
Copy link
Author

001-022_original.pdf
001-022_pso.pdf
001-022_foxit_phantom.pdf

I've add samples to review were CCTT streams are not transferred to Jbig2

@pts
Copy link
Owner

pts commented Feb 5, 2020

I can't reproduce this bug, for me pdfsizeopt creates a PDF with images having /Filter/JBIG2Decode, see the attached file.

Please upgrade to the latest pdfsizeopt, try again, and if you still get the problem, then copy-paste the full console output of pdfisizeopt, and reopen this issue.

use qpdf prior to uncompress files prior to using pdfsizeopt

This is a useful general trick (e.g. for password-protected PDFs), but it's not necessary for images.

001-022_original.pso.pdf

@pts pts added the invalid label Feb 5, 2020
@pts pts closed this as completed Feb 5, 2020
@maadjordan
Copy link
Author

i found the cause of it. i used multivalent and once i omit it is working fine.

@pts pts added multivalent and removed invalid labels Feb 21, 2023
@pts
Copy link
Owner

pts commented Feb 21, 2023

You may want to upload a test input PDF and a pdfsizeopt command-line with Multivalent. Maybe it's possible to make pdfsizeopt autodetect the situation, and prevent Multivalent from touching the image.

@pts pts reopened this Feb 21, 2023
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