3#ifndef PDFSDK_CORE_OPTIONAL_CONTENT_H_INCLUDED_
4#define PDFSDK_CORE_OPTIONAL_CONTENT_H_INCLUDED_
11#include <pdfsdk/core/api_macro.h>
74typedef void(PDFSDK_CALLCONV* PDOCConfigChangedProc)(
void* clientData);
76PDF_CORE_API
PDErrCode PDFSDK_CALLCONV PDDocAttachOCConfigChangedCallback(PDDoc doc, PDOCConfigChangedProc proc,
void* clientData);
77PDF_CORE_API
PDErrCode PDFSDK_CALLCONV PDDocDetachOCConfigChangedCallback(PDDoc doc, PDOCConfigChangedProc proc,
void* clientData);
78PDF_CORE_API
PDErrCode PDFSDK_CALLCONV PDDocNotifyOCConfigChanged(PDDoc doc);
82PDF_CORE_API
PDErrCode PDFSDK_CALLCONV PDDocCreateOCG(PDDoc doc,
const wchar_t* name,
size_t nameSize,
PDOCG* pOCG);
83PDF_CORE_API
PDErrCode PDFSDK_CALLCONV PDDocGetNumOCGs(PDDoc doc,
size_t* pNumOCGs);
84PDF_CORE_API
PDErrCode PDFSDK_CALLCONV PDDocGetOCG(PDDoc doc,
size_t index,
PDOCG* pOCG);
91PDF_CORE_API
PDErrCode PDFSDK_CALLCONV PDOCGSetName(
PDOCG ocg,
const wchar_t* name,
size_t nameSize);
92PDF_CORE_API
PDErrCode PDFSDK_CALLCONV PDOCGGetName(
PDOCG ocg,
wchar_t* buffer,
size_t bufSize,
size_t* pSize);
119PDF_CORE_API
PDErrCode PDFSDK_CALLCONV PDOCConfigSetOCGState(
PDOCConfig config,
PDOCG ocg,
bool state,
bool preserveRB);
struct PDOCMDRec_ * PDOCMD
Represents an optional content membership dictionary.
Definition optional_content.h:40
PDF_CORE_API PDErrCode PDFSDK_CALLCONV PDOCConfigGetOrder(PDOCConfig config, PDObject *pOrder)
struct PDOCConfigRec_ * PDOCConfig
Definition optional_content.h:59
struct PDOCGRec_ * PDOCG
Represents an optional content group (OCG) in a PDF document.
Definition optional_content.h:28
PDOCGStateOperation
Specifies whether the targeted Optional Content Group (OCG) should be visible or hidden when the acti...
Definition optional_content.h:68
@ kPDOCGStateOperationToggle
Definition optional_content.h:71
@ kPDOCGStateOperationOff
Definition optional_content.h:69
@ kPDOCGStateOperationOn
Definition optional_content.h:70
int32_t PDErrCode
Definition errors.h:44