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 2017/05/19 07:56:53 UTC
svn commit: r1795589 -
/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/PDFMergerUtility.java
Author: tilman
Date: Fri May 19 07:56:53 2017
New Revision: 1795589
URL: http://svn.apache.org/viewvc?rev=1795589&view=rev
Log:
PDFBOX-3795: remove filter copied by mergeInto
Modified:
pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/PDFMergerUtility.java
Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/PDFMergerUtility.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/PDFMergerUtility.java?rev=1795589&r1=1795588&r2=1795589&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/PDFMergerUtility.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/PDFMergerUtility.java Fri May 19 07:56:53 2017
@@ -444,6 +444,7 @@ public class PDFMergerUtility
{
PDStream newStream = new PDStream(destination, srcMetadata.getUnfilteredStream(), false);
newStream.getStream().mergeInto(srcMetadata);
+ ((COSDictionary) newStream.getCOSObject()).removeItem(COSName.FILTER);
destCatalog.getCOSDictionary().setItem(COSName.METADATA, newStream);
}