| Category | Optional content |
|---|
Purpose — Number of OCGs (layers) registered on this instance.
Declarations
C
int32_t __stdcall pdfGetOCGCount(PPDF IPDF);
Delphi
function pdfGetOCGCount(const IPDF: PPDF): Integer; stdcall; external 'LumasPdf.dll';
Return value — OCG count, 0 if none or the handle is invalid. Enumerate with pdfGetOCG(IPDF, 1..count, …).
See also — pdfGetOCG
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern int pdfGetOCGCount(IntPtr IPDF);
Area
Core SDK
Category
Getters
Exported names
pdfGetOCGCount
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.