DynaPDF Manual - Page 665

Previous Page 664   Index   Next Page 666

Function Reference
Page 665 of 787
If the flag emUseErrLog is set, DynaPDF redirects all error messages to the error log, see
GetErrLogMessage() / GetErrLogMessageCount() / ClearErrorLog(). The error log is always cleared
when CreateNewPDF() is called, but the error messages reside in memory when CloseFile() or
FreePDF() is called.
The parameter ErrMode is a bit mask; multiple flags can be set with the bitwise or operator, e.g.
(emSyntaxError | emWarning).
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetExtColorSpace
Syntax:
LBOOL pdfSetExtColorSpace(
const PPDF* IPDF, // Instance pointer
UI32 Handle)
// Handle of an extended color space
The function activates an extended color space in the graphics state. An extended color spaces are
non-device color spaces, such as ICCBased, Lab, Separation, DeviceN, and so on. The current fill
and stroke color are initialized to black after the color space has been changed. Device color spaces
can be set with SetColorSpace(). The fill and stroke color spaces can also be set separately with
SetExtFillColorSpace() and SetExtStrokeColorSpace(). See also Color Spaces.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetExtFillColorSpace
Syntax:
LBOOL pdfSetExtFillColorSpace(
const PPDF* IPDF, // Instance pointer
UI32 Handle)
// Handle of an extended color space
The function activates an extended color space for fillings in the graphics state. The fill color is
initialized to black after the color space has been changed. See also Color Spaces.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetEMFPatternDistance, SetErrorMode

Next topic: SetExtGState, SetExtStrokeColorSpace, SetFieldBackColor

Start Chat