pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1795555 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java
Date Thu, 18 May 2017 20:06:31 GMT
Author: tilman
Date: Thu May 18 20:06:31 2017
New Revision: 1795555

URL: http://svn.apache.org/viewvc?rev=1795555&view=rev
Log:
PDFBOX-3795: remove filter copied by mergeInto

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=1795555&r1=1795554&r2=1795555&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 Thu
May 18 20:06:31 2017
@@ -492,6 +492,7 @@ public class PDFMergerUtility
         {
             PDStream newStream = new PDStream(destination, srcMetadata.createInputStream(),
(COSName) null);
             newStream.getCOSObject().mergeInto(srcMetadata);
+            newStream.getCOSObject().removeItem(COSName.FILTER);
             destCatalog.getCOSObject().setItem(COSName.METADATA, newStream);
         }
 



Mime
View raw message