sudharakab / pdfsizeopt

Automatically exported from code.google.com/p/pdfsizeopt
0 stars 0 forks source link

__main__.PdfIndirectLengthError: missing obj for indirect /Length #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What command do you run to optimize the PDF?
user@ubuntu804server:~/manypdfs/fail2$ ~/pdfsizeopt/pdfsizeopt.py
--use-pngout=false presfull.pdf

What does pdfsizeopt display when running the command above?
info: This is pdfsizeopt.py r134.
info: loading PDF from: presfull.pdf
info: loaded PDF of 282470 bytes
info: separated to 214 objs
Traceback (most recent call last):
  File "/home/user/pdfsizeopt/pdfsizeopt.py", line 6157, in ?
    main(sys.argv)
  File "/home/user/pdfsizeopt/pdfsizeopt.py", line 6131, in main
    pdf = PdfData(
  File "/home/user/pdfsizeopt/pdfsizeopt.py", line 3044, in Load
    do_ignore_generation_numbers=self.do_ignore_generation_numbers)
  File "/home/user/pdfsizeopt/pdfsizeopt.py", line 431, in __init__
    raise exc
__main__.PdfIndirectLengthError: missing obj for indirect /Length 213 0 R
at ofs
=906

What's wrong with the optimized PDF?
There isn't one!

Original issue reported on code.google.com by lev.bishop on 25 Jan 2010 at 4:20

Attachments:

GoogleCodeExporter commented 9 years ago
The conversion was successful for me with r147 of pdfsizeopt.

Closing this issue since I can't reproduce the problem.

Original comment by pts...@gmail.com on 10 Feb 2011 at 10:35