THPDFRectilinearMeasureInfo Record
Rectilinear Measure dictionary payload (ISO 32000-1 Table 262, ISO 32000-2 Table 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 is the human-readable ratio and the XFormats/YFormats arrays format the x and y axis values, with YFormats optional
DistanceFormats, AreaFormats, AngleFormats and SlopeFormats format the respective measurements, the last two optional; OriginX/OriginY carry the optional origin and CYX the y-to-x unit ratio
THPDFPage.AddRectilinearViewportEx and AddPageRectilinearViewportEx write the record, and THotPDF.GetLoadedAnnotationMeasure returns it from a loaded measure annotation
THPDFNumberFormatEntry · Page viewports and measures · GetLoadedAnnotationMeasure