|
THPDFPage.AddLineAnnotation
|
顶部 上一页 下一页 |
|
在当前页添加新的直线(Line)批注。
Delphi 语法: procedure AddLineAnnotation ( Contents: AnsiString; BeginPoint: THPDFCurrPoint; EndPoint: THPDFCurrPoint; Color: TColor = clRed ); THPDFCurrPoint Type DefinitionTPDFCurrPoint defines a point
Unit
HPDFDoc
type
THPDFCurrPoint = record
X: Extended;
Y: Extended;
end;
说明:
The THPDFCurrPoint type defines a pixel location. X specifies the horizontal coordinate of the point, Y specifies the vertical coordinate.
C++ 语法: void __fastcall AddLineAnnotation ( AnsiString Contents, THPDFCurrPoint &BeginPoint, THPDFCurrPoint &EndPoint, Graphics::TColor Color );
说明 Use AddLineAnnotation to add new Line annotation specified text message ( Contents), begin point, end point and color on the current page.
Overload with line-ending styles (HotPDF v2.119.16) procedure AddLineAnnotation ( Contents: AnsiString; BeginPoint, EndPoint: THPDFCurrPoint; BeginStyle, EndStyle: THPDFLineEndingStyle; Color: TColor = clRed ); 此重载按 ISO 32000-1 §12.5.6.7 表 175 + 表 176 输出 PDF /LE [/<begin> /<end>] 线端数组。这样阅读器就会渲染所给的端点标记(箭头、刻度、形状),调用方无需自己在页面上绘制。THPDFLineEndingStyle 涵盖表 176 的全部取值:
示例 PDF.CurrentPage.AddLineAnnotation('Width = 120mm',
|