ImageEn, unit iexPdfiumCore

TPdfAnnotationList.NewAnnotation

TPdfAnnotationList.NewAnnotation


Declaration

function NewAnnotation(const R: TDRect; AnnotType: TPdfAnnotationSubType): Boolean; overload;
function NewAnnotation(const R: TDRect; AnnotType: TPdfAnnotationSubType; Color, FillColor: TRGBA): Boolean; overload;


Description

Adds an annotation to the page at the specified position.
At this time, only patSquare or patCircle should be adding using this method.


Demo

Demo  Demos\PDF\PDFAnnotations\PdfAnnotations.dpr


Examples

// Add an ellipse to the page
ImageEnView1.PdfViewer.Annotations.NewAnnotation( R, patCircle, TColor2TRGBA( clBlue, 255 ), TColor2TRGBA( clRed, 125 ));

// Add an rectangle to the page
ImageEnView1.PdfViewer.Annotations.NewAnnotation( R, patSquare, TColor2TRGBA( clGreen, 255 ), TColor2TRGBA( clYellow, 125 ));


See Also

 NewTextAnnotation
 NewLinkAnnotation