API referenceCore SDK

pdfGetLayerConfigCount

Total number of configurations, including the default.

CategoryOptional content

Purpose — Total number of configurations, including the default.

Description — Returns 1 + namedConfigCount when at least one OCG exists (the default /D config always counts as entry 0); returns 0 when no OCGs have been created at all (there is nothing to configure).

Declarations

C
int32_t __stdcall pdfGetLayerConfigCount(PPDF IPDF);
Delphi
function pdfGetLayerConfigCount(const IPDF: PPDF): Integer; stdcall; external 'LumasPdf.dll';

Return value — Configuration count (0 if no OCGs exist yet).

See alsopdfGetLayerConfig

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern int pdfGetLayerConfigCount(IntPtr IPDF);
Area
Core SDK
Category

Getters

Exported names

pdfGetLayerConfigCount

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.