DynaPDF Manual - Page 241

Previous Page 240   Index   Next Page 242

Function Reference
Page 241 of 787
int main(int argc, char* argv[]
{
SI32 retval;
PPDF* pdf = pdfNewPDF();
if (!pdf) return -1; // Out of memory?
retval = TestDeviceNColorSpace(pdf);
pdfFreePDF(pdf);
return retval;
}
As you can see the creation of a DeviceN color space with multiple spot and process colorants is not
difficult. With the helper function that creates the required PostScript calculator function, you can
easily create DeviceN color spaces with up to 32 color channels.
Return values:
If the function succeeds the return value is the color space handle, a value greater or equal zero. If
the function fails the return value is a negative error code.
CreateExtGState
Syntax:
SI32 pdfCreateExtGState(
const PPDF* IPDF,
// Instance pointer
struct TPDFExtGState* GS) // Extended graphics state structure
struct TPDFExtGState
{
UI32
AutoStrokeAdjust; // PDF_MAX_INT if not set
TBlendMode
BlendMode;
// Default bmNotSet
float
FlatnessTol;
// -1.0 if not set
UI32
OverPrintFill;
// PDF_MAX_INT if not set
UI32
OverPrintStroke;
// PDF_MAX_INT if not set
UI32
OverPrintMode;
// PDF_MAX_INT if not set
TRenderingIntent RenderingIntent;
// riNone if not set
float
SmoothnessTol;
// -1.0 if not set
float
FillAlpha;
// -1.0 if not set
float
StrokeAlpha;
// -1.0 if not set
UI32
AlphaIsShape;
// PDF_MAX_INT if not set
UI32
TextKnockout;
// PDF_MAX_INT if not set
LBOOL
SoftMaskNone;
// Disables a soft mask
void*
Reserved1;
void*
Reserved2;
void*
Reserved3;
void*
Reserved4;
void*
Reserved5;
void*
Reserved6;
void*
Reserved7;
void*
Reserved8;
};
 

Previous topic: Example 2:

Next topic: CreateGoToAction

Start Chat