PdfContentEditor.CreateFreeText

PdfContentEditor.CreateFreeText method

Creates free text annotation in PDF document

public void CreateFreeText(Rectangle rect, string contents, int page)
ParameterTypeDescription
rectRectangleThe annotation rectangle defining the location of the annotation on the page.
contentsStringThe contents of the annotation.
pageInt32The number of original page where the text annotation will be created.

Examples

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateFreeText(new System.Drawing.Rectangle(0, 0, 100, 100), "Welcome to Aspose", 1);
editor.Save("example_out.pdf");

See Also