pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1849954 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java
Date Sun, 30 Dec 2018 08:21:58 GMT
Author: tilman
Date: Sun Dec 30 08:21:58 2018
New Revision: 1849954

URL: http://svn.apache.org/viewvc?rev=1849954&view=rev
Log:
PDFBOX-4417: forgot to remove old code segment

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=1849954&r1=1849953&r2=1849954&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 Sun
Dec 30 08:21:58 2018
@@ -812,24 +812,6 @@ public class PDFMergerUtility
             destStructTree.setParentTree(newParentTreeNode);
             destStructTree.setParentTreeNextKey(destParentTreeNextKey);
 
-            COSArray newKArray = new COSArray();
-            if (srcStructTree.getK() != null)
-            {
-                newKArray.add(cloner.cloneForNewDocument(srcStructTree.getK()));
-            }
-            if (destStructTree.getK() != null)
-            {
-                newKArray.add(destStructTree.getK());
-            }
-            if (newKArray.size() > 0)
-            {
-                COSDictionary kDictLevel0 = new COSDictionary();
-                kDictLevel0.setItem(COSName.K, newKArray);
-                kDictLevel0.setItem(COSName.P, destStructTree);
-                kDictLevel0.setItem(COSName.S, COSName.DOCUMENT);
-                destStructTree.setK(kDictLevel0);
-            }
-
             mergeKEntries(cloner, srcStructTree, destStructTree);
             mergeRoleMap(srcStructTree, destStructTree);
         }



Mime
View raw message