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

New commits:
commit 06f942657ee0798d7bdc5bd180150ea0464833a5
Author: Arthur Stavisky <[email protected]>
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 <[email protected]>
 // Copyright (C) 2013 Adrian Johnson <[email protected]>
 // Copyright (C) 2013 Hib Eris <[email protected]>
+// Copyright (C) 2015 Arthur Stavisky <[email protected]>
 //
 //========================================================================
 
@@ -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;
 
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to