pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1606620 - in /pdfbox/trunk: pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDGraphicsState.java preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightContentStream.java
Date Mon, 30 Jun 2014 03:34:11 GMT
Author: jahewson
Date: Mon Jun 30 03:34:11 2014
New Revision: 1606620

URL: http://svn.apache.org/r1606620
Log:
PDFBOX-2126: remove PDGraphicsState which allows creation of invalid state

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDGraphicsState.java
    pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightContentStream.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDGraphicsState.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDGraphicsState.java?rev=1606620&r1=1606619&r2=1606620&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDGraphicsState.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDGraphicsState.java
Mon Jun 30 03:34:11 2014
@@ -69,14 +69,6 @@ public class PDGraphicsState implements 
     private double smoothness = 0;
 
     /**
-     * Default constructor.
-     */
-    public PDGraphicsState()
-    {
-        clippingPath = new Area();
-    }
-
-    /**
      * Constructor with a given pagesize to initialize the clipping path.
      * @param page the size of the page
      */

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightContentStream.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightContentStream.java?rev=1606620&r1=1606619&r2=1606620&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightContentStream.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightContentStream.java
Mon Jun 30 03:34:11 2014
@@ -96,7 +96,6 @@ public class PreflightContentStream exte
     {
         try
         {
-            resetEnginContext();
             processSubStream(xobj.getResources(), xobj.getCOSStream());
         }
         catch (ContentStreamException e)
@@ -121,7 +120,6 @@ public class PreflightContentStream exte
         try
         {
             COSDictionary res = (COSDictionary) pattern.getDictionaryObject(COSName.RESOURCES);
-            resetEnginContext();
             processSubStream(new PDResources(res), pattern);
         }
         catch (ContentStreamException e)
@@ -134,15 +132,6 @@ public class PreflightContentStream exte
         }
     }
 
-    public final void resetEnginContext()
-    {
-        this.setGraphicsState(new PDGraphicsState());
-        this.setTextMatrix(null);
-        this.setTextLineMatrix(null);
-        //this.getGraphicsStack().clear();
-        // this.streamResourcesStack.clear();
-    }
-
     /*
      * (non-Javadoc)
      * 



Mime
View raw message