DrawCurve

PdfContentEditor.DrawCurve method

创建曲线注释。

public void DrawCurve(LineInfo lineInfo, int page, Rectangle annotRect, string annotContents)
范围类型描述
lineInfoLineInfoLineInfo 类的实例。
pageInt32将在其中创建注释的原始页数。
annotRectRectangle定义页面上注释位置的注释矩形。
annotContentsString注释的内容。

例子

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");

也可以看看