THPDFRectilinearMeasureInfo 记录

直线型 Measure 字典载荷(ISO 32000-1 表 262,ISO 32000-2 表 267,/Subtype /RL)

THPDFRectilinearMeasureInfo = record
  ScaleRatio: AnsiString;                     // /R (required)
  XFormats: THPDFNumberFormatEntryArray;      // /X (required)
  YFormats: THPDFNumberFormatEntryArray;      // /Y (optional)
  DistanceFormats: THPDFNumberFormatEntryArray; // /D (required)
  AreaFormats: THPDFNumberFormatEntryArray;   // /A (required)
  AngleFormats: THPDFNumberFormatEntryArray;  // /T (optional)
  SlopeFormats: THPDFNumberFormatEntryArray;  // /S (optional)
  HasOrigin: boolean;
  OriginX: Double;                            // /O [OriginX OriginY]
  OriginY: Double;
  HasCYX: boolean;
  CYX: Double;                                // /CYX
end;

ScaleRatio 是给人看的比例文字,XFormats/YFormats 数组负责格式化 x、y 轴数值,YFormats 可省略

DistanceFormats、AreaFormats、AngleFormats 与 SlopeFormats 分别格式化对应的测量值,后两个可省略;OriginX/OriginY 携带可选原点,CYX 是 y 单位对 x 单位的比率

THPDFPage.AddRectilinearViewportEx 与 AddPageRectilinearViewportEx 写入该记录,THotPDF.GetLoadedAnnotationMeasure 从已加载的测量注释返回它

THPDFNumberFormatEntry · 页面视口与测量 · GetLoadedAnnotationMeasure