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

DynaPDF Manual - Page 383

Previous Page 382   Index   Next Page 384

Function Reference
Page 383 of 750
GetGStateFlags
Syntax:
UI32 pdfGetGStateFlags(
const PPDF* IPDF) // Instance pointer
The returns the current graphics state flags. The available flags are described at SetGStateFlags().
GetHideAction
LBOOL pdfGetHideAction(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// Action handle
struct TPDFHideAction* Action) // see below
struct TPDFHideAction
{
UI32
StructSize;
// Must be set to sizeof(TPDFHideAction).
const IFLD** Fields;
// Array of field pointers -> GetFieldEx2().
UI32
FieldsCount;
// Number of fields in the array.
LBOOL
Hide;
// Hide or show the fields in the array?
SI32
NextAction;
// -1 or next action handle to be executed if any.
TActionType
NextActionType; // Only set if NextAction is >= 0.
};
The function retrieves the properties of a Hide action. The member StructSize must be set to
sizeof(TPDFHideAction) before the function can be called.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetIconColor
Syntax:
UI32 pdfGetIconColor(
const PPDF* IPDF) // Instance pointer
The function returns the icon color used for newly created text annotations. The color value must
always be defined in DeviceRGB because normal annotations do not support the color spaces
DeviceGray or DeviceCMYK. See also SetIconColor().
GetImageBuffer
Syntax:
char* pdfGetImageBuffer(
const PPDF* IPDF,
// Instance pointer
UI32 ADDR BufSize) // Variable to get the buffer size in bytes
The function returns the buffer of an image that was created in memory by CreateImage(). The buffer
size is set to the parameter BufSize. The returned pointer is a pointer to the original buffer; it must not
be freed or changed. When the image buffer is no longer needed it must be released with
FreeImageBuffer().
 

Previous topic: GetGoToRAction

Next topic: GetImageObj