API referenceCore SDK

pdfInitOCGContUsage

Initialize a TPDFOCGContUsage record to its "unset" state

CategoryOptional 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

ParameterTypeDescription
ValueTPDFOCGContUsage*Record to initialize. No IPDF parameter — purely a local memory operation.

Return valueTRUE; FALSE only if Value is NULL.

See alsopdfSetOCGContUsage

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.