[poppler] utils/pdfunite.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Aug 29 06:53:42 PDT 2015


 utils/pdfunite.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 06f942657ee0798d7bdc5bd180150ea0464833a5
Author: Arthur Stavisky <vovodroid at gmail.com>
Date:   Sat Aug 29 15:50:45 2015 +0200

    Fix for xref table creation
    
    Bug #90790

diff --git a/utils/pdfunite.cc b/utils/pdfunite.cc
index 170355d..19a1eb5 100644
--- a/utils/pdfunite.cc
+++ b/utils/pdfunite.cc
@@ -10,6 +10,7 @@
 // Copyright (C) 2012, 2014 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2013 Adrian Johnson <ajohnson at redneon.com>
 // Copyright (C) 2013 Hib Eris <hib at hiberis.nl>
+// Copyright (C) 2015 Arthur Stavisky <vovodroid at gmail.com>
 //
 //========================================================================
 
@@ -451,7 +452,7 @@ int main (int argc, char *argv[])
   ref.gen = 0;
   Dict *trailerDict = PDFDoc::createTrailerDict(objectsCount, gFalse, 0, &ref, yRef,
                                                 fileName, outStr->getPos());
-  PDFDoc::writeXRefTableTrailer(trailerDict, yRef, gFalse /* do not write unnecessary entries */,
+  PDFDoc::writeXRefTableTrailer(trailerDict, yRef, gTrue, // write all entries according to ISO 32000-1, 7.5.4 Cross-Reference Table: "For a file that has never been incrementally updated, the cross-reference section shall contain only one subsection, whose object numbering begins at 0."
                                 uxrefOffset, outStr, yRef);
   delete trailerDict;
 


More information about the poppler mailing list