PdfContentEditor.CreatePolygon
Contents
[
Hide
]PdfContentEditor.CreatePolygon method
Creates polygon annotation.
public void CreatePolygon(LineInfo lineInfo, int page, Rectangle annotRect, string annotContents)
Parameter | Type | Description |
---|---|---|
lineInfo | LineInfo | The instance of LineInfo class. |
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. |
annotContents | String | The contents of the annotation. |
Examples
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
LineInfo lineInfo = new LineInfo();
lineInfo.VerticeCoordinate = new float[] { 0, 0, 100, 100, 100, 50 };
lineInfo.Visibility = true;
editor.CreatePolygon(lineInfo, 1 , new System.Drawing.Rectangle(0, 0, 0, 0), "Welcome to Aspose");
editor.Save("example_out.pdf");
See Also
- class LineInfo
- class PdfContentEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF