THPDFLayoutDiagnosticOptions Record

Switches and budgets for layout diagnostics: element-path and source-location capture, overlap detection, overlay drawing and labels, live-preview notifications, and tracking limits

Declaration

THPDFLayoutDiagnosticOptions= record
  CaptureElementPath: boolean;
  CaptureSourceLocation: boolean;
  DetectOverlaps: boolean;
  DrawOverlays: boolean;
  ShowOverlayLabels: boolean;
  LivePreview: boolean;
  MaxTrackedBounds: Integer;
  MaxOverlapComparisons: Int64;
  class function Default: THPDFLayoutDiagnosticOptions; static;
end;

Unit

HPDFDoc

Fields

FieldPurpose
CaptureElementPathRecord the ElementPath string of each diagnostic; default True
CaptureSourceLocationRecord the source file, line, and column attached to the element; default False
DetectOverlapsTrack placed rectangles and compare them pairwise for overlaps; default False
DrawOverlaysDraw diagnostic rectangles onto the page during rendering; default False
ShowOverlayLabelsAnnotate drawn overlays with their reason text; default True
LivePreviewPush diagnostic notifications during interactive editing; default False
MaxTrackedBoundsMaximum number of rectangles retained for tracking and overlap checks; default 4096
MaxOverlapComparisonsMaximum pairwise rectangle comparisons per run before detection stops; default 1000000
DefaultClass function returning the values listed above

Usage notes

Related APIs