|
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;
Description:
The THPDFCurrPoint type defines a pixel location. X specifies the horizontal coordinate of the point, Y specifies the vertical coordinate.
C++ syntax: 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 ); Эта перегрузка записывает массив окончаний линии PDF /LE [/<begin> /<end>] согласно ISO 32000-1 §12.5.6.7, таблицы 175 и 176. Viewer сам отрисует заданные метки на концах (стрелки, засечки, фигуры), и вызывающему коду не нужно рисовать их на странице. THPDFLineEndingStyle покрывает весь набор из таблицы 176:
Пример PDF.CurrentPage.AddLineAnnotation('Width = 120mm',
|