THPDFPage.AddLineAnnotation

THPDFPage

 

Topo  Anterior  Seguinte

Adiciona uma nova anotação Line à página atual

 

Delphi syntax:

procedure AddLineAnnotation ( Contents: AnsiString; BeginPoint: THPDFCurrPoint; EndPoint: THPDFCurrPoint; Color: TColor = clRed );

THPDFCurrPoint Type Definition

TPDFCurrPoint 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 );

 

Descrição

Adicione AddLineAnnotation para criar uma nova anotação Line com a mensagem de texto especificada ( Contents), ponto inicial, ponto final e cor na página atual

 

Overload with line-ending styles (HotPDF v2.119.16)

procedure AddLineAnnotation ( Contents: AnsiString; BeginPoint, EndPoint: THPDFCurrPoint; BeginStyle, EndStyle: THPDFLineEndingStyle; Color: TColor = clRed );

Esta sobrecarga emite a matriz de terminação de linha PDF /LE [/<begin> /<end>] de acordo com a ISO 32000-1 §12.5.6.7 Tabela 175 + Tabela 176. O visualizador representa então as marcas de extremidade fornecidas (setas, traços, formas) sem que o chamador tenha de as desenhar na página. THPDFLineEndingStyle cobre o conjunto completo da Tabela 176:

   lesNone — no endpoint marker (PDF spec default)
   lesSquare — filled square
   lesCircle — filled circle
   lesDiamond — filled diamond
   lesOpenArrow — open arrowhead
   lesClosedArrow — triangular closed arrowhead
   lesButt — short perpendicular tick
   lesROpenArrow — reverse-direction open arrow
   lesRClosedArrow — reverse-direction closed arrow
   lesSlash — ~30° clockwise short tick

 

Example

PDF.CurrentPage.AddLineAnnotation('Width = 120mm',
  Point1, Point2, lesClosedArrow, lesClosedArrow, clBlue);

 

Line annotation preview