pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1702072 - in /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel: PDPage.java graphics/form/PDFormXObject.java
Date Wed, 09 Sep 2015 18:18:12 GMT
Author: tilman
Date: Wed Sep  9 18:18:12 2015
New Revision: 1702072

URL: http://svn.apache.org/r1702072
Log:
PDFBOX-2852: fix call to deprecated method

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/form/PDFormXObject.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java?rev=1702072&r1=1702071&r2=1702072&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java Wed Sep  9 18:18:12
2015
@@ -145,7 +145,7 @@ public class PDPage implements COSObject
         COSBase base = page.getDictionaryObject(COSName.CONTENTS);
         if (base instanceof COSStream)
         {
-            return ((COSStream)base).getUnfilteredStream();
+            return ((COSStream)base).createInputStream();
         }
         else if (base instanceof COSArray && ((COSArray) base).size() > 0)
         {
@@ -155,7 +155,7 @@ public class PDPage implements COSObject
             for (int i = 0; i < streams.size(); i++)
             {
                 COSStream stream = (COSStream)streams.getObject(i);
-                inputStreams.add(stream.getUnfilteredStream());
+                inputStreams.add(stream.createInputStream());
                 inputStreams.add(new ByteArrayInputStream(delimiter));
             }
             return new SequenceInputStream(Collections.enumeration(inputStreams));

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/form/PDFormXObject.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/form/PDFormXObject.java?rev=1702072&r1=1702071&r2=1702072&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/form/PDFormXObject.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/form/PDFormXObject.java
Wed Sep  9 18:18:12 2015
@@ -141,7 +141,7 @@ public class PDFormXObject extends PDXOb
     @Override
     public InputStream getContents() throws IOException
     {
-        return getCOSStream().getUnfilteredStream();
+        return getCOSStream().createInputStream();
     }
 
     /**



Mime
View raw message