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; by default False
DetectOverlapsTrack placed rectangles and compare them in pairs for overlaps; by default False
DrawOverlaysDraw diagnostic rectangles onto the page whilst rendering; by default False
ShowOverlayLabelsAnnotate drawn overlays with their reason text; default True
LivePreviewPush diagnostic notifications whilst interactive editing is under way; by 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 handing back the values listed above

Usage notes

Related APIs