THPDFViewerHighlight Record

Stores one page-anchored highlight rectangle and its color in the viewer model

Declaration

THPDFViewerHighlight= record
  PageIndex: Integer;
  PageRect: THPDFRectangle;
  Color: TColor;
end;

Unit

HPDFViewerModel

Fields

FieldPurpose
PageIndexZero-based index of the page the highlight is anchored to
PageRectRectangle in PDF user space; AddHighlightRegion normalizes it and clamps it to the visible page box (the CropBox clipped to the MediaBox) before storing
ColorTColor used to draw the highlight, clYellow by default

Usage notes

Related APIs