ImageEn, unit iexPdfiumCore

TPdfAnnotation


Declaration

TPdfAnnotation = class(TObject)


Description

Provides access to an annotation of the PDF page.



Demo

Demo  Demos\PDF\PDFAnnotations\PdfAnnotations.dpr

General Properties
Public Property  AnnotType
Public Property  Bounds
Public Property  Color
Public Property  FillColor
Public Property  LinkType
Public Property  LinkFileName
Public Property  LinkUri
Public Property  Text
Public Property  StringValue
Public Method  GetLinkGotoDestination


Example

// Output all annotations on the page
for i := 0 to ImageEnView1.PdfViewer.Annotations.Count -1 do
begin
  ann := ImageEnView1.PdfViewer.Annotations[i];
  lbxAnnotations.Items.Add( Format( 'Annot %d: (%s) at (%d,%d,%d,%d)',
                                    [ i+1, PdfAnnotTypeToStr( ann.AnnotType ),
                                      Round(ann.Bounds.Left), Round(ann.Bounds.Top), Round(ann.Bounds.Right), Round(ann.Bounds.Bottom) ]));
end;