Issue 44: PDF 1.5 Cross Reference Streams
Status:  Fixed
Owner:
Closed:  Jun 2011
Reported by fred...@witherden.org, Jun 4, 2011
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.
Jun 5, 2011
Project Member #1 pts...@gmail.com
Please attach a small sample PDF which pdfsizeopt cannot load.
Labels: -Type-Defect Type-Enhancement
Jun 5, 2011
#2 fred...@witherden.org
File attached.
test.pdf
88.3 KB   Download
Jun 6, 2011
Project Member #3 pts...@gmail.com
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.
Status: Fixed
Jun 18, 2011
#4 cookie...@web.de
Thank you very much for

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