|
THPDFPage.AddLineAnnotation
|
Haut Précédent Suivant |
|
Ajoute une nouvelle annotation Line à la page courante.
Syntaxe Delphi : procedure AddLineAnnotation ( Sommaire: 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.
Syntaxe C++ : void __fastcall AddLineAnnotation ( AnsiString Sommaire, THPDFCurrPoint &BeginPoint, THPDFCurrPoint &EndPoint, Graphics::TColor Color );
Description Use AddLineAnnotation to add new Line annotation specified text message ( Sommaire), begin point, end point and color on the current page.
Overload with line-ending styles (HotPDF v2.119.16) procedure AddLineAnnotation ( Sommaire: AnsiString; BeginPoint, EndPoint: THPDFCurrPoint; BeginStyle, EndStyle: THPDFLineEndingStyle; Color: TColor = clRed ); Cette surcharge émet le tableau de terminaisons de ligne PDF /LE [/<begin> /<end>] conformément à ISO 32000-1 §12.5.6.7, tableaux 175 + 176. Le viewer affiche alors les marques d’extrémité fournies (flèches, graduations, formes) sans que l’appelant ait à les dessiner sur la page. THPDFLineEndingStyle couvre l’ensemble du tableau 176 :
Exemple PDF.CurrentPage.AddLineAnnotation('Width = 120mm',
|