PdfContentEditor.CreateText

PdfContentEditor.CreateText method

Creates text annotation in PDF document

public void CreateText(Rectangle rect, string title, string contents, bool open, string icon, 
    int page)
ParameterTypeDescription
rectRectangleThe annotation rectangle defining the location of the annotation on the page.
titleStringThe title of the annotation.
contentsStringThe contents of the annotation.
openBooleanA flag specifying whether the annotation should initially be displayed open.
iconStringThe name of an icon will be used in displaying the annotation. This value can be: “Comment”, “Key”, “Note”, “Help”, “NewParagraph”, “Paragraph”, “Insert”
pageInt32The number of original page where the text annotation will be created.

Examples

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateText(new System.Drawing.Rectangle(0, 0, 100, 100),
    "Welcome to Aspose", "You are welcome to Aspose!", true, "Key", 1);
editor.Save("example_out.pdf");

See Also