Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 472

Previous Page 471   Index   Next Page 473

Function Reference
Page 472 of 750
The function enables color management in the functions RenderPage(), RenderPageEx(),
RenderPageToImage(), and RenderPDFFile() exactly like InitColorManagement() but accepts ICC
profile buffers instead of file paths. See InitColorManagement() for further information.
To disable color management set the parameter Profiles to NULL.
Remarks:
Initializing the color management requires a considerable amount of processing time. It is strongly
recommended to use one PDF instance as long as possible so that it must not be initialized again
when another PDF file will be rendered.
The color management can be initialized right after the PDF instance was created.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
InitExtGState
Syntax:
LBOOL pdfInitExtGState(
struct TPDFExtGState* GS) // Structure to be initialized
The function initializes the structure GS with default values. The initialization is strongly
recommended before creating an extended graphics state object. See also CreateExtGState().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
InitOCGContUsage
Syntax:
LBOOL pdfInitOCGContUsage(
struct TPDFOCGContUsage* Value) // Address of TPDFOCGContUsage
// structure
The function initializes the TPDFOCGContUsage structure with default values. The member
StructSize must be set to sizeof(TPDFOCGContUsage) before the function can be called. The
structure size is used to identify different versions of the structure.
Once the structure was initialized, one or more members can be changed and passed to
SetOCGContUsage().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: InitColorManagementEx

Next topic: InkAnnot