THPDFLoadedTextReplacementPlan Record

Holds the previewed or applied state of a single loaded-page text replacement

THPDFLoadedTextReplacementPlan = record
  PageIndex: Integer;
  Needle, Replacement: UnicodeString;
  MatchCase: Boolean;
  SourceFingerprint: AnsiString;
  Options: THPDFLoadedTextReplacementOptions;
  Results: THPDFLoadedTextReplacementResults;
  MatchedCount, ReadyCount, AppliedCount, RejectedCount: Integer;
end;

The unit is HPDFDoc; the plan records the searched page, needle, replacement, case sensitivity and the source fingerprint a later apply must present to prove the page is unchanged

Results lists one entry per match with status, rectangle and font details, and the four counters summarise the outcome

A plan is produced by THotPDF.PreviewLoadedPageTextReplacement and then consumed by THotPDF.ApplyLoadedPageTextReplacement

Preview Unicode text replacement