Bug 688282

Summary: Xref-streams ignored in hybrid-ref PDFs
Product: Ghostscript Reporter: SaGS <sags5495>
Component: PDF InterpreterAssignee: Alex Cherepanov <alex>
Status: NOTIFIED FIXED    
Severity: normal    
Priority: P3    
Version: master   
Hardware: PC   
OS: All   
Customer: Word Size: ---
Attachments: Suggested patch.

Description SaGS 2005-08-24 13:49:16 UTC
There are 2 main types of xref tables: the "classic xref" available in all 
PDF versions, and "xref streams" available in PDF1.5+. There is also a mix 
in the form of "hybrid-reference PDFs". For the latter, GS ignores the 
xref-stream part, beheaving as a PDF1.4-and-earlier viewer, even it does 
handle both main types of xref.
Comment 1 SaGS 2005-08-24 13:52:58 UTC
Created attachment 1650 [details]
Suggested patch.
Comment 2 Dan Coby 2005-08-26 16:50:50 UTC
Please attach a sample file.
Comment 3 SaGS 2005-08-26 23:29:23 UTC
See the sample for bug 688283 "'trailer' without 'startxref'".

Notes:
- There's extra trouble with that file, which compounds the problem 
  described here (patch attached on that bug report).
- For that file, only structure information is hidden from PDF1.4 viewers, 
  so don't expect to see any difference by displaying/printing the file. 
  I stumbeld against this while fixing pdfinflt.ps (and there you will 
  see the difference).
Comment 4 Henry Stiles 2007-12-31 13:39:20 UTC
This was not assigned correctly.
Comment 5 Alex Cherepanov 2008-01-01 13:59:41 UTC
The patch is adopted and committed as a rev. 8473.
Thank you, SaGS.

Regression testing shows no differences.