THotPDF.GetLoadedOCGCount Method
Gets the number of optional content groups (OCGs, i.e., layers)
Declaration
function GetLoadedOCGCount: Integer;
Unit
HPDFDoc
Return value
| Name | Purpose |
|---|---|
| This member takes no explicit parameters | |
Return value
Returns an Integer value
Usage notes
- For working with PDF layers
- Keep object names, field names, resource names, and returned handles stable until the document is finalised
- Loaded-document object references may be indirect; resolve arrays, dictionaries, or streams before inspecting nested values