THPDFHeadlessTextAppearance.ObjectCount

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 1

Enumerate the objects with GetObject, take ownership of one with DetachObject, and read an object number with GetObjectNumber

The first object's number is reported separately by the FirstObjectNumber property