pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1586149 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PDFPrinter.java
Date Wed, 09 Apr 2014 21:20:31 GMT
Author: tilman
Date: Wed Apr  9 21:20:31 2014
New Revision: 1586149

URL: http://svn.apache.org/r1586149
Log:
PDFBOX-2021: prevent black printed image

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PDFPrinter.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PDFPrinter.java?rev=1586149&r1=1586148&r2=1586149&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PDFPrinter.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PDFPrinter.java Wed Apr
 9 21:20:31 2014
@@ -297,6 +297,7 @@ public class PDFPrinter
 
                 // draw to graphics using PDFRender
                 AffineTransform transform = (AffineTransform)graphics2D.getTransform().clone();
+                graphics2D.setBackground(Color.WHITE);
                 renderer.renderPageToGraphics(pageIndex, graphics2D, (float)scale);
 
                 // draw crop box



Mime
View raw message