PdfContentEditor.CreatePolyLine

PdfContentEditor.CreatePolyLine method

Creates polyline annotation.

public void CreatePolyLine(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();
editor.BindPdf("example.pdf");
LineInfo lineInfo = new LineInfo();
lineInfo.VerticeCoordinate = new float[] { 0, 0, 100, 100, 100, 50 };
lineInfo.Visibility = true;
editor.CreatePolyLine(lineInfo, 1 , new System.Drawing.Rectangle(0, 0, 0, 0), "Welcome to Aspose");
editor.Save("example_out.pdf");

See Also