Closed DenKn closed 1 year ago
Thanks. qpdf solved my problem.
Thank you for reporting this bug! The attached input.pdf file contains an object with index 3 1 obj
, and pdfsizeopt is unable read it, beucase it supports only N 0 obj
(with any positive N). This is indeed a bug in pdfsizeopt. Until the bug is fixed, you should preprocess the input file with qpdf.
Fixed in 2b006992319a6a451438f03bc35a334033a3b1e2. It works now:
info: This is pdfsizeopt rUNKNOWN size=402206.
info: prepending to PATH: ./pdfsizeopt_libexec
info: loading PDF from: input156.pdf
info: loaded PDF of 64094 bytes
info: separated to 43 objs + xref + trailer
info: parsed 43 objs
info: eliminated 3 unused objs, depth=6
info: found 0 Type1 fonts loaded
info: found 0 Type1C fonts loaded
info: optimized 17 streams, kept 3 #orig, 14 zip
info: eliminated 14 duplicate objs
info: compressed 0 streams, kept 0 of them uncompressed
info: saving PDF with 26 objs to: input156.pso.pdf
info: generated object stream of 1133 bytes in 16 objects (17%)
info: generated 33600 bytes (52%)
Hi. After success compression I've got corrupted pdf file. But file is very simple. You can find input.pdf and output.pdf files.
Any ideas? Thanks.
output.pdf input.pdf