hefronmedia / pdfsizeopt

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

SyntaxError: EOL while scanning single-quoted string #23

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 mitra\
girvin.pdf

What does pdfsizeopt display when running the command above?
info: This is pdfsizeopt.py r132.
info: loading PDF from: mitra girvin.pdf
info: loaded PDF of 130285 bytes
info: separated to 123 objs
Traceback (most recent call last):
  File "/home/user/pdfsizeopt/pdfsizeopt.py", line 6141, in ?
    main(sys.argv)
  File "/home/user/pdfsizeopt/pdfsizeopt.py", line 6115, in main
    pdf = PdfData(
  File "/home/user/pdfsizeopt/pdfsizeopt.py", line 3040, in Load
    do_ignore_generation_numbers=self.do_ignore_generation_numbers)
  File "/home/user/pdfsizeopt/pdfsizeopt.py", line 367, in __init__
    i = self.FindEndOfObj(other, skip_obj_number_idx, len(other))
  File "/home/user/pdfsizeopt/pdfsizeopt.py", line 809, in FindEndOfObj
    cls.RewriteToParsable(
  File "/home/user/pdfsizeopt/pdfsizeopt.py", line 1921, in RewriteToParsable
    output.append(
  File "<string>", line 1

'/H9251/H20848/H9003/H9268/H9016/H11008/H9252/H20851/H11509/H20858/H9270/H92
60/H20852/H9261/H9258/H9254/H9262/H20853/H9275/H9280/H11015/H9263/H9278/H9023/H2
0854/H9011/H20849/H9273/HS11005/H9253/H9004/H9
SyntaxError: EOL while scanning single-quoted string

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

Original issue reported on code.google.com by lev.bishop on 19 Nov 2009 at 3:21

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in r133. Thank you for reporting this bug.

Original comment by pts...@gmail.com on 29 Nov 2009 at 10:25