CreateRubberStamp
内容
[
隐藏
]CreateRubberStamp(int, Rectangle, string, string, Color)
创建橡皮图章注释。
public void CreateRubberStamp(int page, Rectangle annotRect, string icon, string annotContents,
Color color)
范围 | 类型 | 描述 |
---|---|---|
page | Int32 | 将在其中创建注释的原始页数。 |
annotRect | Rectangle | 定义页面上注释位置的注释矩形。 |
icon | String | 一个图标将用于显示注释。默认值:‘草稿’。” |
annotContents | String | 注释的内容。 |
color | Color | 注释的颜色。 |
例子
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateRubberStamp(1, System.Drawing.Rectangle(0, 0, 100, 100),
"Welcome to Aspose", System.Drawing.Color.Red);
editor.Save("example_out.pdf");
也可以看看
- class PdfContentEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
CreateRubberStamp(int, Rectangle, string, Color, string)
创建橡皮图章注释。
public void CreateRubberStamp(int page, Rectangle annotRect, string annotContents, Color color,
string appearanceFile)
范围 | 类型 | 描述 |
---|---|---|
page | Int32 | 将在其中创建注释的原始页数。 |
annotRect | Rectangle | 定义页面上注释位置的注释矩形。 |
annotContents | String | 注释的内容。 |
color | Color | 注释的颜色。 |
appearanceFile | String | 外观文件的路径。 |
例子
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateRubberStamp(1, System.Drawing.Rectangle(0, 0, 100, 100),
"Welcome to Aspose", System.Drawing.Color.Red, "appearance_file.pdf");
editor.Save("example_out.pdf");
也可以看看
- class PdfContentEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
CreateRubberStamp(int, Rectangle, string, Color, Stream)
创建橡皮图章注释。
public void CreateRubberStamp(int page, Rectangle annotRect, string annotContents, Color color,
Stream appearanceStream)
范围 | 类型 | 描述 |
---|---|---|
page | Int32 | 将在其中创建注释的原始页数。 |
annotRect | Rectangle | 定义页面上注释位置的注释矩形。 |
annotContents | String | 注释的内容。 |
color | Color | 注释的颜色。 |
appearanceStream | Stream | 外观文件流。 |
例子
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
using (System.IO.FileStream appStream = File.OpenRead("appearance_file.pdf"))
{
editor.CreateRubberStamp(1, System.Drawing.Rectangle(0, 0, 100, 100),
"Welcome to Aspose", System.Drawing.Color.Red, appStream);
editor.Save("example_out.pdf");
}
也可以看看
- class PdfContentEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF