DynaPDF Manual - Page 730

Previous Page 729   Index   Next Page 731

Function Reference
Page 730 of 860
The special flag emNoFuncNames names can be used to avoid the output of the function name in
which the error occured. Error messages start normally with the function name that produced the
error, e.g. "SetFont: Font not found!". While this information is useful during development, it is
usually not useful in an end user application.
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