Open Cubba2412 opened 2 years ago
What does the error stem from and how can I make my scanned pdf's work with pdfsizeopt?
Use pdfsizeopt
with cpdf
(https://github.com/johnwhitington/cpdf-source) or qpdf
(https://github.com/qpdf/qpdf).
See also:
@Cubba2412 Comments by zvezdochiot were not helpfull at all in my case. He / she has no clue.
It is very unusual for a PDF to have the character \x0b
(ASCII 11) outside strings and stream data, but it's allowed: according to section 3.1.1 of https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/pdfreference1.7old.pdf, \x0b
is a regular character, and can be part of a token. So pdfsizeopt rejecting it is probably a bug in pdfsizeopt.
Could you please upload one of your input PDFs?
As suggested by @zvezdochiot, it is also my gut feeling that running cpdf or qpdf as a workaround before pdfsizeopt may fix this problem. However, we can't possibly know for sure until @Cubba2412 shares one of the input PDFs.
@Cubba2412: Can you please upload a sample PDF which demonstrates this bug?
Hello
I have a simple scanned pdf receipt from a HP deskjet 3632 via the HP smart app and whenever i try to run pdfsizeopt on anything scanned from this machine I am presented with the following error message:
Furthermore the output pdf becomes errorneus and gives the following error when I try to open it in Adobe Acrobat:
There was an error opening this document. There was a problem reading this document (14)
When I open it in a browser it is simply completely empty.
What does the error stem from and how can I make my scanned pdf's work with pdfsizeopt?