-
Notifications
You must be signed in to change notification settings - Fork 67
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
output image doesn't work in Adobe Acrobat XI Pro and Ghostscript #114
Comments
Thank you for reporting this! What do you mean by corrupted? Which programs fail to open the PDF? How do these programs react? Please copy-paste the console output of pdfsizeopt. |
Adobe Acrobat XI Pro gives this error on page 8 Which basically means "An error has occurred while reading this document (14)" Here is the log:
|
Please also attach your the output file ( |
There may be 1 or more bugs in pdfsizeopt. For example, Ghostscript fails with the output
If I change it to Also there is no error (and pdfsizeopt becomes much faster and the document outline disappears) if I convert with pdftk first:
Also there is no error (and pdfsizeopt becomes much faster and the document outline remains) if I convert with pdftk first:
Expected behavior: if Ghostscript succeeds on the input of pdfsizeopt, then Ghostscript should also succeed on the output of pdfsizeopt. Clearly this is not happening, see the failure of I don't know what causes the failure in Acrobat XI Pro (because I don't have a copy of that software), in this issue I'll focus on fixing the failure in Ghostscript. |
Here is the file produced by the command in the first post: https://www16.zippyshare.com/v/38xuXvag/file.html |
Unfortunately I don't have a copy of file.pdf anymore. Could you please upload it again? |
I may have forgotten which file it was, but I have updated the link in the first post with what I believe is the right file. Thank you for your work on this! |
I'm able to reproduce this bug with Ghostscript ( |
Ghostscript 9.26 reports the following error on issue114.pso.pdf: |
It looks like that there is a bug with the latest pdfsizeopt with FYI Input file is issue114.pdf (78326925 bytes, 1023 pages). Conversions:
Results with Ghostscript 9.26
Results with Ghostscript 9.05
Results with Evince and xpdf: All 4 files work. When preprocessed with qpdf, it succeeds with Ghostscript 9.26:
pdfsizeopt can read its own output, and doesn't change it:
|
@jul059: Does this file (issue114.c1.c1fix1.pdf in https://www.mediafire.com/file/ho884noim37ler1/issue114.c1.c1fix1.pdf/file) work in Adobe Acrobat XI Pro? Ghostscript 9.26 seems to work with it. All I did was moving object 85456 outside of the object stream. I don't understand how this fixes Ghostscript. |
Same error on page 8, like screenshot here. |
There may be multiple different bugs:
This needs more investigation. |
@jul059: Could you please try these 2 PDFs in Adobe Acrobat XI Pro? https://www.mediafire.com/file/omzky589falmuhe/issue114.c2.pdf/file and https://www.mediafire.com/file/sx6rs2jmjfosax6/issue114.c3.pdf/file |
Unfortunately, same error as here. |
This pdf becomes corrupted after using this command:
pdfsizeopt --use-image-optimizer=optipng,advpng,jbig2
Sorry for the zippyshare link, the file is too big for conventional upload. https://www85.zippyshare.com/v/z6qbdPjW/file.html
The text was updated successfully, but these errors were encountered: