CreatePolygon
PdfContentEditor.CreatePolygon method
创建多边形注释。
public void CreatePolygon(LineInfo lineInfo, int page, Rectangle annotRect, string annotContents)
范围 | 类型 | 描述 |
---|---|---|
lineInfo | LineInfo | LineInfo 类的实例。 |
page | Int32 | 将在其中创建注释的原始页数。 |
annotRect | Rectangle | 定义页面上注释位置的注释矩形。 |
annotContents | String | 注释的内容。 |
例子
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");
也可以看看
- class LineInfo
- class PdfContentEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF