pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1606943 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
Date Mon, 30 Jun 2014 23:08:45 GMT
Author: jahewson
Date: Mon Jun 30 23:08:44 2014
New Revision: 1606943

URL: http://svn.apache.org/r1606943
Log:
PDFBOX-2126: Apply color to Graphics2D for every text-run

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java?rev=1606943&r1=1606942&r2=1606943&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java Mon Jun
30 23:08:44 2014
@@ -270,6 +270,12 @@ public class PageDrawer extends PDFStrea
     @Override
     public void beginText() throws IOException
     {
+        setClip();
+    }
+
+    @Override
+    public void processText(byte[] string) throws IOException
+    {
         PDGraphicsState state = getGraphicsState();
         Composite composite;
         Paint paint;
@@ -300,7 +306,7 @@ public class PageDrawer extends PDFStrea
         }
         graphics.setComposite(composite);
         graphics.setPaint(paint);
-        setClip();
+        super.processText(string);
     }
 
     @Override



Mime
View raw message