summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorThomas Freitag <Thomas.Freitag@alfa.de>2012-12-28 01:18:48 +0100
committerAlbert Astals Cid <aacid@kde.org>2012-12-28 01:18:48 +0100
commitd61c6d4944d6f7c9e8b517dd28958124f4923d08 (patch)
tree6891b93ebed4d02d1b2eac51d52063ba44be9406 /utils
parentbe4804bff2b722ceac180da52ad436fee548f9ee (diff)
Repair pdfunite
Sorry, when I implemented the support encrypted pdf files in pdfseparate I missed that writePageObjects of course is also used in pdfunite for combining pages, and even more that encrypted files are still not supported by pdfunite, I removed the numoffset from writing the objects itself. Therefore there are still all objects in the combined pdf file, but the references missing the numoffset and therefore were no more reachable. The patch repairs it. Bug #58569
Diffstat (limited to 'utils')
-rw-r--r--utils/pdfunite.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/pdfunite.cc b/utils/pdfunite.cc
index 65022599..79d05f04 100644
--- a/utils/pdfunite.cc
+++ b/utils/pdfunite.cc
@@ -4,7 +4,7 @@
//
// This file is licensed under the GPLv2 or later
//
-// Copyright (C) 2011 Thomas Freitag <Thomas.Freitag@alfa.de>
+// Copyright (C) 2011, 2012 Thomas Freitag <Thomas.Freitag@alfa.de>
// Copyright (C) 2012 Arseny Solokha <asolokha@gmx.com>
// Copyright (C) 2012 Fabio D'Urso <fabiodurso@hotmail.it>
// Copyright (C) 2012 Albert Astals Cid <aacid@kde.org>
@@ -122,7 +122,7 @@ int main (int argc, char *argv[])
Dict *pageDict = page.getDict();
docs[i]->markPageObjects(pageDict, yRef, countRef, numOffset);
}
- objectsCount += docs[i]->writePageObjects(outStr, yRef, numOffset);
+ objectsCount += docs[i]->writePageObjects(outStr, yRef, numOffset, gTrue);
numOffset = yRef->getNumObjects() + 1;
}