#11 PDFGraphics.clearRect() does not create a white background.

open
nobody
None
5
2005-12-23
2005-12-23
Andrew Walsh
No

The first step in the clearRect() method is intended to
set the color to white before drawing a rectangle of
the given size. However, the command used ("1 1 1 RG")
only sets the stroke color to white. Therefore the
line around the rectange is white, but the fill color
remains black (or whatever the current color is). The
command "1 1 1 rg" is also needed to set the nonstroke
color to white as well. I have attached a modified
version of the source code for PDFGraphics that I
believe fixes the problem.

Discussion