Open maadjordan opened 5 years ago
First of all, sorry for the short email, but I am on vacation, away from my computer.
With that being said, pdfsizeopt does not perform some optimizations. I don't recall (and can't experiment right now) with files with multiple compressions, but one excellent option is to use qpdf prior to uncompress files prior to using pdfsizeopt.
I frequently get some weird PDFs that I want to keep, but they are weirdly produced and qpdf sort of "normalizes" them in a way that pdfsizeopt likes.
Just my 2 cents,
Rogério Brito
Em qui, 25 de jul de 2019 10:38, maadjordan notifications@github.com escreveu:
To add processing deflated CCITT stream to JBIG2 encoding.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pts/pdfsizeopt/issues/128?email_source=notifications&email_token=AABTZML5V7YONHIFJMBYBF3QBGUEBA5CNFSM4IG2X2Y2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HBPOFWA, or mute the thread https://github.com/notifications/unsubscribe-auth/AABTZMPTCTA5KWLVPQC5NJLQBGUEBANCNFSM4IG2X2YQ .
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
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.
i found the cause of it. i used multivalent and once i omit it is working fine.
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.
To add processing deflated CCITT stream to JBIG2 encoding.