property PageObjectsSnapshot[PageNumber: Integer]: TPdfPageObjectsSnapshot; // read only
type TPdfPageObjectsSnapshot = record
PageNumber: Integer;
Width: Double;
Height: Double;
Status: TPdfPageObjectSnapshotStatus;
Objects: TPdfPageObjectSnapshots;
end;
| PageNumber | Integer. One-based page index within the loaded document |
| Status | TPdfPageObjectSnapshotStatus. Completion flag, visited object counts and the budget flags that were reached |
| Objects | Per-object records with type, bounds, transform, colours, dash arrays, path and clip segments, content marks, image metadata and bounded text |
The first access for a page captures the snapshot with TPdfPageObjectSnapshotOptions.Default budgets. The active page is read through its loaded handles, and any other page is loaded and closed transiently without changing PageNumber or firing OnPageChange
Every access returns a deep copy, so changing nested dash arrays, mark parameters, path segments, clip paths, filters or strings cannot modify cached data or the document
Completed snapshots are retained in the bounded cache described by PageObjectSnapshotCacheCapacity and measured against CacheBudgetBytes, and PageComplexity reuses this cache for object types, path counts, image pixels and transparency
Calling without an active document raises EPdfError, and a PageNumber outside one through PageCount raises EPdfError with the message Incorrect page number
Use ReadPageObjectsSnapshot for custom capture budgets or to bypass the cache deliberately
Snapshot := Pdf.PageObjectsSnapshot[PageNumber];
for I := 0 to High(Snapshot.Objects) do
if Snapshot.Objects[I].ObjectType = otImage then
LogImageObject(I);