PDFium Delphi Component Docs

ReadTextPageSnapshot method

Component: TPdf  ·  Unit: PDFium
Reads an owned snapshot of one text page without native handles

Syntax

function ReadTextPageSnapshot(PageNumber: Integer; const Options: TPdfTextSnapshotOptions; out Status: TPdfTextSnapshotStatus): TPdfTextPageSnapshot;

Description

ReadTextPageSnapshot copies the character, rectangle and index facts of the text page of PageNumber (one-based) into an owned TPdfTextPageSnapshot

Status separates an unparseable text layer from bounded reads (an out-of-range page number raises EPdfError); the snapshot itself keeps no FPDF_TEXTPAGE handle and survives document reloads

Remarks

Example

var St: TPdfTextSnapshotStatus;
Snap := Pdf1.ReadTextPageSnapshot(1, TPdfTextSnapshotOptions.Default, St);

See Also

TextPageSnapshot, Text page snapshots, TextPage