PdfContentEditor.CreateMarkup

PdfContentEditor.CreateMarkup method

Creates markup annotation it PDF document.

public void CreateMarkup(Rectangle rect, string contents, int type, int page, Color clr)
ParameterTypeDescription
rectRectangleThe rectangle defining the location of the annotation on the page.
contentsStringThe contents of the annotation.
typeInt32The type of markup annotation. Can be 0 (Highlight), 1 (Underline), 2 (StrikeOut), 3 (Squiggly).
pageInt32The number of original page where the annotation will be created.
clrColorThe color of markup.

Examples

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

See Also