PDFium Delphi Component Docs

ReadPageObjectsSnapshot method

Component: TPdf  ·  Unit: PDFium
Reads an owned, handle-free snapshot of every page object on one page

Syntax

function ReadPageObjectsSnapshot(PageNumber: Integer; const Options: TPdfPageObjectSnapshotOptions; out Status: TPdfPageObjectSnapshotStatus): TPdfPageObjectsSnapshot;

Description

ReadPageObjectsSnapshot copies type, bounds, transforms, text, mark and dependency facts of all page objects of one page into an owned TPdfPageObjectsSnapshot that contains no native FPDF_PAGEOBJECT handles

PageNumber is one-based (an out-of-range page number raises EPdfError); Status reports whether the read completed or ran into an explicit option budget

Remarks

Example

Inspect all objects of a page outside any rendering callback

var Snap: TPdfPageObjectsSnapshot; Status: TPdfPageObjectSnapshotStatus;
Snap := Pdf1.ReadPageObjectsSnapshot(1, TPdfPageObjectSnapshotOptions.Default, Status);

See Also

PageObjectsSnapshot, PageObjectSnapshotCacheCapacity, ReadTextPageSnapshot, Page-object snapshots