pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1849925 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java
Date Sat, 29 Dec 2018 16:21:43 GMT
Author: tilman
Date: Sat Dec 29 16:21:42 2018
New Revision: 1849925

URL: http://svn.apache.org/viewvc?rev=1849925&view=rev
Log:
PDFBOX-4417: clone source K array

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java?rev=1849925&r1=1849924&r2=1849925&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java Sat
Dec 29 16:21:42 2018
@@ -818,6 +818,7 @@ public class PDFMergerUtility
             COSArray srcKArray = srcStructTree.getKArray();
             if (destKArray != null && srcKArray != null)
             {
+                srcKArray = (COSArray) cloner.cloneForNewDocument(srcKArray);
                 updateParentEntry(destKArray, kDictLevel0);
                 newKArray.addAll(destKArray);
                 updateParentEntry(srcKArray, kDictLevel0);



Mime
View raw message