DynaPDF Manual - Page 150

Previous Page 149   Index   Next Page 151

Function Reference
Page 150 of 839
AddObjectToLayer
Syntax:
LBOOL pdfAddObjectToLayer(
const PPDF* IPDF,
// Instance pointer
UI32 OCG,
// Must be a OCG or OCMD handle
TOCObject ObjType, // See below
UI32 Handle)
// Object handle
typedef enum
{
ooAnnotation,
ooField,
ooImage,
ooTemplate
}TOCObject;
The function adds an object to an Optional Content Group (OCG) or Optional Content Membership
dictionary (OCMD). See also CreateOCG() and CreateOCMD().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
AddOCGToAppEvent
Syntax:
LBOOL pdfAddOCGToAppEvent(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// OCG handle
TOCAppEvent Events,
// Bitmask, see below
TOCGUsageCategory Categories) // Bitmask, see below
typedef enum
{
aeExport = 1,
aePrint
= 2,
aeView
= 4
}TOCAppEvent;
The categories refer to the members of a Content Usage dictionary. See SetOCGContUsage() for
further information.
typedef enum
{
oucNone
= 0,
oucExport
= 1,
oucLanguage = 2,
oucPrint
= 4,
oucUser
= 8,
oucView
= 16,
oucZoom
= 32
}TOCGUsageCategory;
The function adds an Optional Content Group (OCG) to an application event. PDF defines three
events, in which the state of layers or OCGs can be dynamically changed depending on settings in
 

Previous topic: AddMaskImage

Next topic: AddOutputIntent