THPDFPage.AddLineAnnotation

THPDFPage

 

Üst  Önceki  Sonraki

Geçerli sayfaya yeni bir Line annotation ekler

 

Delphi sözdizimi:

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

THPDFCurrPoint Tür Tanımı

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++ sözdizimi:

void __fastcall AddLineAnnotation ( AnsiString Contents, THPDFCurrPoint &BeginPoint, THPDFCurrPoint &EndPoint, Graphics::TColor Color );

 

Açıklama

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

Bu overload, ISO 32000-1 §12.5.6.7 Tablo 175 + Tablo 176'ya göre PDF /LE [/<begin> /<end>] satır ucu dizisini yazar. Görüntüleyici, çağıranın bunları sayfaya çizmek zorunda kalmaması için sağlanan uç işaretlerini (oklar, çizgiler, şekiller) çizer. THPDFLineEndingStyle, Tablo 176 kümesinin tamamını kapsar:

   lesNone — uç işaretleyici yok (PDF belirtimi varsayılanı)
   lesSquare — dolu kare
   lesCircle — dolu daire
   lesDiamond — dolu eşkenar dörtgen
   lesOpenArrow — açık ok başı
   lesClosedArrow — üçgen kapalı ok başı
   lesButt — kısa dik çizgi
   lesROpenArrow — ters yönlü açık ok
   lesRClosedArrow — ters yönlü kapalı ok
   lesSlash — ~30° saat yönünde kısa çizgi

 

Örnek

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

 

Line annotation preview