activePDF Toolkit 2011 API Reference
CountObjects
Technical Reference > Explorer Object > Methods > CountObjects

Glossary Item Box

Description: Returns the total number of PDF structure objects in the input PDF.
Syntax: retValue = object.CountObjects
Arguments: Argument Value Type Description & Settings
object N/A Set to an instance of the Explorer object.
retValue: Value Type Description & Settings
Integer The total PDF structure objects count for the input PDF. The method returns a 0 (zero) if the input PDF is invalid.

Depending on your implementation, the total count is used to supplement the object parsing cycle started from the GetRootObject call, Object (current object ID) of (total count) for example, or to pass the ObjectIDNumber for the GetObject call, For ObjectIDNumber = 1 to (total count).