property PageObjectSnapshotCacheCapacity: Integer; // read and write, default 8
Reading PageObjectsSnapshot captures every page object with its type, bounds, transforms, dash arrays, path and clip segments, content marks, image metadata, and bounded text. The cache keeps one slot per document page and retains completed snapshots in least-recently-used order up to this capacity, so repeated object inspection and complexity analysis reuse one capture
Each retained snapshot is measured with an estimate covering object records, dash arrays, path and clip segments, content marks with their parameters, image filter lists, and text and font strings, and reserves that estimate in the shared CacheBudgetBytes governor
Reducing the capacity evicts the least recently used snapshots and releases their governor bytes immediately
Setting the capacity to zero clears the cache and disables retention, while direct bounded reads through PageObjectsSnapshot and ReadPageObjectsSnapshot keep working and simply re-capture every time
Negative values raise EPdfError
An incomplete capture, one whose Status.Completed is False because an object, path, clip, mark, text, or string budget was hit, is returned to the caller but never cached
Pdf.PageObjectSnapshotCacheCapacity := 16;
Snapshot := Pdf.PageObjectsSnapshot[PageNumber];
LogObjectKinds(Snapshot.Objects);