pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1764291 - in /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state: PDExtendedGraphicsState.java PDGraphicsState.java
Date Tue, 11 Oct 2016 16:29:18 GMT
Author: tilman
Date: Tue Oct 11 16:29:18 2016
New Revision: 1764291

URL: http://svn.apache.org/viewvc?rev=1764291&view=rev
Log:
PDFBOX-3529: read overprint attributes

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDExtendedGraphicsState.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDGraphicsState.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDExtendedGraphicsState.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDExtendedGraphicsState.java?rev=1764291&r1=1764290&r2=1764291&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDExtendedGraphicsState.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDExtendedGraphicsState.java
Tue Oct 11 16:29:18 2016
@@ -96,6 +96,14 @@ public class PDExtendedGraphicsState imp
             {
                 gs.setOverprintMode( getOverprintMode().doubleValue() );
             }
+            else if( key.equals( COSName.OP ) )
+            {
+                gs.setOverprint( getStrokingOverprintControl());
+            }
+            else if( key.equals( COSName.OP_NS ) )
+            {
+                gs.setNonStrokingOverprint(getNonStrokingOverprintControl());
+            }
             else if( key.equals( COSName.FONT ) )
             {
                 PDFontSetting setting = getFontSetting();

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=1764291&r1=1764290&r2=1764291&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
Tue Oct 11 16:29:18 2016
@@ -61,6 +61,7 @@ public class PDGraphicsState implements
 
     // DEVICE-DEPENDENT parameters
     private boolean overprint = false;
+    private boolean nonStrokingOverprint = false;
     private double overprintMode = 0;
     //black generation
     //undercolor removal
@@ -300,8 +301,6 @@ public class PDGraphicsState implements
     }
 
     /**
-
-    /**
      * get the value of the overprint property.
      *
      * @return The value of the overprint parameter.
@@ -322,6 +321,26 @@ public class PDGraphicsState implements
     }
 
     /**
+     * get the value of the non stroking overprint property.
+     *
+     * @return The value of the non stroking overprint parameter.
+     */
+    public boolean isNonStrokingOverprint()
+    {
+        return nonStrokingOverprint;
+    }
+
+    /**
+     * set the value of the non stroking overprint property.
+     *
+     * @param value The value of the non stroking overprint parameter.
+     */
+    public void setNonStrokingOverprint(boolean value)
+    {
+        nonStrokingOverprint = value;
+    }
+
+    /**
      * get the value of the overprint mode property.
      *
      * @return The value of the overprint mode parameter.



Mime
View raw message