THPDFHeadlessTextAppearance.ObjectCount
The number of indirect objects held by a built text appearance
property ObjectCount: Integer read GetObjectCount;
The unit is HPDFHeadlessAppearance; valid object indexes run from 0 to ObjectCount minus one
Enumerate the objects with GetObject, take ownership of one with DetachObject, and read back an object number with GetObjectNumber
The number of the first object is reported separately by the FirstObjectNumber property