PdfContentEditor.DrawCurve

PdfContentEditor.DrawCurve method

Creates curve annotation.

public void DrawCurve(LineInfo lineInfo, int page, Rectangle annotRect, string annotContents)
ParameterTypeDescription
lineInfoLineInfoThe instance of LineInfo class.
pageInt32The number of original page where the annotation will be created.
annotRectRectangleThe annotation rectangle defining the location of the annotation on the page.
annotContentsStringThe contents of the annotation.

Examples

PdfContentEditor editor = new PdfContentEditor();
newApiEditor.BindPdf("example.pdf");
LineInfo lineInfo = new LineInfo();
lineInfo.VerticeCoordinate = new float[] { 0, 0, 100, 100 };  //x1, y1, x2, y2, .. xn, yn
lineInfo.Visibility = true;
editor.DrawCurve(lineInfo, 1, new System.Drawing.Rectangle(0, 0, 0, 0), "Welcome to Aspose");
editor.Save("example_out.pdf");

See Also