Closed GoogleCodeExporter closed 9 years ago
Thank you for reporting this bug.
Indeed pdfsizeopt doesn't support encrypted PDF. There is issue 51 already open
about that.
However, the error message printed for your input file was not informative
enough, so I fixed that in r226. The new error message is:
info: This is pdfsizeopt.py r226 size=321397.
info: using Java for Multivalent: /usr/bin/java
info: loading PDF from: issue76.pdf
info: loaded PDF of 4175835 bytes
Traceback (most recent call last):
File "./pdfsizeopt.py", line 8097, in <module>
main(sys.argv)
File "./pdfsizeopt.py", line 8059, in main
).Load(file_name)
File "./pdfsizeopt.py", line 3692, in Load
'.decrypted.pdf')))
NotImplementedError: encrypted PDF input not supported, use this command to
decrypt first: qpdf --decrypt issue76.pdf issue76.decrypted.pdf
Original comment by pts...@gmail.com
on 27 Feb 2013 at 10:15
Great, much more informative, and separating the code in the extra class makes
the code a bit easier to read.
Thanks.
Original comment by rbr...@gmail.com
on 27 Feb 2013 at 11:15
Original issue reported on code.google.com by
rbr...@gmail.com
on 26 Feb 2013 at 2:38