[gs-cvs] rev 8473 - trunk/gs/lib
alexcher at ghostscript.com
alexcher at ghostscript.com
Tue Jan 1 12:44:52 PST 2008
Author: alexcher
Date: 2008-01-01 12:44:52 -0800 (Tue, 01 Jan 2008)
New Revision: 8473
Modified:
trunk/gs/lib/pdf_main.ps
Log:
Don't ignore xref stream in a hybrid "classic xref" + "stream xref" file
as PDF 1.5-compatible should do. Thanks to SaGS for the patch. Bug 688282.
DIFFERENCES:
None.
Modified: trunk/gs/lib/pdf_main.ps
===================================================================
--- trunk/gs/lib/pdf_main.ps 2008-01-01 14:28:30 UTC (rev 8472)
+++ trunk/gs/lib/pdf_main.ps 2008-01-01 20:44:52 UTC (rev 8473)
@@ -494,7 +494,14 @@
% non-compliant PDF files that we have to do this too.
PDFfile pdfstring 0 4 getinterval readstring pop
(xref) eq
- { readorigxref } % 'xref' -> original xref table
+ {
+ readorigxref % 'xref' -> original xref table
+ % if hybrid-reference PDF, also fetch the entries
+ % found in the XRef stream pointed by /XRefStm
+ dup /XRefStm knownoget {
+ readpdf15xref pop
+ } if
+ }
{ readpdf15xref } % otherwise assume PDF 1.5 xref stream
ifelse
} bind def
More information about the gs-cvs
mailing list