diff --git a/utils/pdfunite.cc b/utils/pdfunite.cc index b35090c..d45f514 100644 --- a/utils/pdfunite.cc +++ b/utils/pdfunite.cc @@ -300,7 +300,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;