CreatePolygon

PdfContentEditor.CreatePolygon method

创建多边形注释。

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

例子

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

也可以看看