You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2018/12/30 09:34:48 UTC
svn commit: r1849962 -
/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java
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)