hefronmedia / pdfsizeopt

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

PDF 1.5 Cross Reference Streams #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Virtually all PDFs produced by recent versions of pdflatex can not be processed 
by pdfsizeopt on account of them containing cross reference streams.  This 
results in errors such as:

Traceback (most recent call last):
  File "pdfsizeopt.py", line 6186, in <module>
    main(sys.argv)
  File "pdfsizeopt.py", line 6162, in main
    ).Load(file_name)
  File "pdfsizeopt.py", line 2991, in Load
    data, do_ignore_generation_numbers=self.do_ignore_generation_numbers)
  File "pdfsizeopt.py", line 3076, in ParseUsingXref
    'PDF-1.5 cross reference streams not implemented')
NotImplementedError: PDF-1.5 cross reference streams not implemented

Given that pdflatex is starting to use these by default (unless 
\pdfminorversion=4 or below) it would be nice to see them supported.

Original issue reported on code.google.com by fred...@witherden.org on 4 Jun 2011 at 9:15

GoogleCodeExporter commented 9 years ago
Please attach a small sample PDF which pdfsizeopt cannot load.

Original comment by pts...@gmail.com on 5 Jun 2011 at 11:00

GoogleCodeExporter commented 9 years ago
File attached.

Original comment by fred...@witherden.org on 5 Jun 2011 at 1:17

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for adding this feature request and for the example PDF.

PDF 1.5 cross-reference stream (xref stream) and object stream parsing support 
has been added in r162. Please svn update, try it with your PDFs and report any 
problems in this issue.

Original comment by pts...@gmail.com on 6 Jun 2011 at 11:11

GoogleCodeExporter commented 9 years ago
Thank you very much for

1. this great script !!!
2. adding cross-reference-streams, so I can use it without complications with 
texlive!

Original comment by cookie...@web.de on 18 Jun 2011 at 5:39