PdfContentEditor.CreateCaret
Contents
[
Hide
]PdfContentEditor.CreateCaret method
Creates caret annotation.
public void CreateCaret(int page, Rectangle annotRect, Rectangle caretRect, string symbol,
string annotContents, Color color)
Parameter | Type | Description |
---|---|---|
page | Int32 | The number of original page where the annotation will be created. |
annotRect | Rectangle | The annotation rectangle defining the location of the annotation on the page. |
caretRect | Rectangle | The actual boundaries of the underlying caret. |
symbol | String | A symbol will be associated with the caret. Value can be: “P” (Paragraph), “None”. |
annotContents | String | The contents of the annotation. |
color | Color | The color of the annotation. |
Examples
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateCaret(1,
new System.Drawing.Rectangle(50, 50, 100, 100),
new System.Drawing.Rectangle(60, 60, 70, 70),
"None", "Welcome to Aspose", System.Drawing.Color.Red);
editor.Save("example_out.pdf");
See Also
- class PdfContentEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF