pdfbox-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1849962&view=rev
Log:
PDFBOX-4416: remove /IDTree from /Names

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=1849962&r1=1849961&r2=1849962&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 09:34:48 2018
@@ -558,6 +558,13 @@ public class PDFMergerUtility
             }
         }
         
+        if (destNames != null)
+        {
+            // found in 054080.pdf from PDFBOX-4417 and doesn't belong there
+            destNames.getCOSObject().removeItem(COSName.ID_TREE);
+            LOG.warn("Removed /IDTree from /Names dictionary, doesn't belong there");
+        }
+
         PDDocumentNameDestinationDictionary destDests = destCatalog.getDests();
         PDDocumentNameDestinationDictionary srcDests = srcCatalog.getDests();
         if (srcDests != null)



Mime
View raw message