GetDocumentPartCount
Document parts, variable data, document inspection
Description
Counts the root and all reachable descendants in the active document part hierarchy
Syntax
Delphi
Function TPDFlib.GetDocumentPartCount: Integer;DLL
int DLGetDocumentPartCount(int InstanceID);ActiveX
Function PDFlib::GetDocumentPartCount() As LongReturn values
Returns the reachable part count, or 0 when no hierarchy exists or traversal fails
Remarks
Cycle suppression and a fixed depth limit keep inspection bounded even before explicit validation