THotPDF.VisitLoadedPageContentOperators
Visits decoded page operations and optionally commits validated edits
Declaration
function VisitLoadedPageContentOperators(PageIndex: Integer;
ApplyChanges: boolean;
const Options: THPDFContentOperatorVisitOptions;
CancellationToken: THPDFCancellationToken;
out Statistics: THPDFContentOperatorVisitStatistics): boolean;
Parameters
PageIndexselects a zero-based loaded pageApplyChangescommits valid delete and replacement actions whenTrueOptionsdefines parser and replacement budgetsCancellationTokenmay benilStatisticsreceives traversal and transformation results
Return value
True when traversal completes or stops intentionally with valid output, otherwise False
Usage notes
- The shorter overload uses
THPDFContentOperatorVisitOptions.Defaultand no cancellation token ApplyChanges=Falsesupports inspection, measurement, and policy checks without changing the document- No page mutation occurs until callbacks finish and the complete output passes validation
- A successful mutation replaces multiple content segments with one decoded indirect stream and invalidates all page render caches