New Forum | Previous | Next | (P-PDF) Developers
Topic: White boxes
Conf: (P-PDF) Developers, Msg: 101586
Date: 12/2/2003 08:36 AM
I am drawing boxes on a pdf page using PDE methods with a black fill. I am now trying to change the color to white. The following code does not work.
whiteFill.color = ASFloatToFixed(1.0);
PDEDefaultGState(&graphicsState, sizeof (graphicsState));
graphicsState.fillColorSpec.space = PDEColorSpaceCreateFromName(ASAtomFromString("DeviceGray"));
graphicsState.fillColorSpec.value = whiteFill;
If i remove the ".value" line it works but fills the box with black.
Acrobat 5.0 or higher