pts/pdfsizeopt

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

maadjordan opened this issue · 5 comments

To add processing deflated CCITT stream to JBIG2 encoding.

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 commented

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

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

pts commented

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.