pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1703983 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
Date Sat, 19 Sep 2015 11:19:18 GMT
Author: tilman
Date: Sat Sep 19 11:19:18 2015
New Revision: 1703983

URL: http://svn.apache.org/viewvc?rev=1703983&view=rev
Log:
PDFBOX-2852: replace deprecated methods

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java?rev=1703983&r1=1703982&r2=1703983&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java Sat Sep 19
11:19:18 2015
@@ -458,7 +458,7 @@ public class PDDocument implements Close
         
         // Create empty visual appearance stream
         COSStream apsStream = getDocument().createCOSStream();
-        apsStream.createUnfilteredStream().close();
+        apsStream.createOutputStream().close();
         PDAppearanceStream aps = new PDAppearanceStream(apsStream);
         COSDictionary cosObject = (COSDictionary) aps.getCOSObject();
         cosObject.setItem(COSName.SUBTYPE, COSName.FORM);



Mime
View raw message