pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1821408 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDAbstractContentStream.java
Date Wed, 17 Jan 2018 19:27:01 GMT
Author: tilman
Date: Wed Jan 17 19:27:01 2018
New Revision: 1821408

URL: http://svn.apache.org/viewvc?rev=1821408&view=rev
Log:
PDFBOX-4068: create new lean constructor; remove obsolete comment

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDAbstractContentStream.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDAbstractContentStream.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDAbstractContentStream.java?rev=1821408&r1=1821407&r2=1821408&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDAbstractContentStream.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDAbstractContentStream.java
Wed Jan 17 19:27:01 2018
@@ -123,7 +123,7 @@ public abstract class PDAbstractContentS
     }
     
     /**
-     * Create a new appearance stream. Note that this is not actually a "page" content stream.
+     * Create a new appearance stream.
      *
      * @param appearance The appearance stream to add to.
      * @param outputStream The appearances output stream to write to.
@@ -138,7 +138,22 @@ public abstract class PDAbstractContentS
         formatDecimal.setMaximumFractionDigits(4);
         formatDecimal.setGroupingUsed(false);
     }
-    
+
+    /**
+     * Create a new appearance stream.
+     * 
+     * @param outputStream The appearances output stream to write to.
+     * @throws IOException 
+     */
+    public PDAbstractContentStream(OutputStream outputStream) throws IOException
+    {
+        output = outputStream;
+        this.resources = null;
+
+        formatDecimal.setMaximumFractionDigits(4);
+        formatDecimal.setGroupingUsed(false);
+    }
+
     /**
      * Sets the maximum number of digits allowed for fractional numbers.
      * 



Mime
View raw message