CreateRubberStamp

CreateRubberStamp(int, Rectangle, string, string, Color)

创建橡皮图章注释。

public void CreateRubberStamp(int page, Rectangle annotRect, string icon, string annotContents, 
    Color color)
范围类型描述
pageInt32将在其中创建注释的原始页数。
annotRectRectangle定义页面上注释位置的注释矩形。
iconString一个图标将用于显示注释。默认值:‘草稿’。”
annotContentsString注释的内容。
colorColor注释的颜色。

例子

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

也可以看看


CreateRubberStamp(int, Rectangle, string, Color, string)

创建橡皮图章注释。

public void CreateRubberStamp(int page, Rectangle annotRect, string annotContents, Color color, 
    string appearanceFile)
范围类型描述
pageInt32将在其中创建注释的原始页数。
annotRectRectangle定义页面上注释位置的注释矩形。
annotContentsString注释的内容。
colorColor注释的颜色。
appearanceFileString外观文件的路径。

例子

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

也可以看看


CreateRubberStamp(int, Rectangle, string, Color, Stream)

创建橡皮图章注释。

public void CreateRubberStamp(int page, Rectangle annotRect, string annotContents, Color color, 
    Stream appearanceStream)
范围类型描述
pageInt32将在其中创建注释的原始页数。
annotRectRectangle定义页面上注释位置的注释矩形。
annotContentsString注释的内容。
colorColor注释的颜色。
appearanceStreamStream外观文件流。

例子

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

也可以看看