DynaPDF Manual - Page 709

Previous Page 708   Index   Next Page 710

Function Reference
Page 709 of 839
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