pdfInitOCGContUsage
Initialize a TPDFOCGContUsage record to its "unset" state
| Category | Optional content |
|---|
Purpose — Initialize a TPDFOCGContUsage record to its "unset" state before populating it for pdfSetOCGContUsage.
Description — Zero-fills the record, sets StructSize, and sets ViewState, PrintState, ExportState, UserType to -1 (unset — leaving them at -1 when passed to pdfSetOCGContUsage means "don't change this field").
Declarations
C
BOOL32 __stdcall pdfInitOCGContUsage(TPDFOCGContUsage* Value);
Delphi
function pdfInitOCGContUsage(var Value: TPDFOCGContUsage): LongBool; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
Value | TPDFOCGContUsage* | Record to initialize. No IPDF parameter — purely a local memory operation. |
Return value — TRUE; FALSE only if Value is NULL.
See also — pdfSetOCGContUsage
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Core SDK
Category
Core
Exported names
pdfInitOCGContUsage
String variants
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
See working code
Worked examples — complete programs in ten languages.