Click or drag to resize

PdfDocumentAddTextAnnotation Method (PdfDocumentTextAnnotation, Int32, Int32, Int32, Int32, Int32)

Adds an annotation to a page of this PdfDocument

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 5.1.1.20965 (5.1.1.2)
Syntax
public void AddTextAnnotation(
	PdfDocumentTextAnnotation TextAnnotation,
	int PageIndex,
	int X,
	int Y,
	int Width = 30,
	int Height = 30
)

Parameters

TextAnnotation
Type: IronPdfPdfDocumentTextAnnotation
The annotation as a PdfDocumentTextAnnotation object.
PageIndex
Type: SystemInt32
Index of the page to add the annotation. The first page has a PageIndex of 0
X
Type: SystemInt32
The horizontal X position of the annotation on your page in pixels
Y
Type: SystemInt32
The vertical Y position of the annotation on your page in pixels. Measured from top downwards.
Width (Optional)
Type: SystemInt32
The width of your annotation's icon and interactive area in pixels
Height (Optional)
Type: SystemInt32
The height of your annotation's icon and interactive area in pixels
See Also