CreateRubberStamp

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

Creates a rubber stamp annotation.

public void CreateRubberStamp(int page, Rectangle annotRect, string icon, string annotContents, 
    Color color)
Parameter Type Description
page Int32 The number of original page where the annotation will be created.
annotRect Rectangle The annotation rectangle defining the location of the annotation on the page.
icon String An icon is to be used in displaying the annotation. Default value: ‘Draft’."
annotContents String The contents of the annotation.
color Color The colour of the annotation.

Examples

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

See Also


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

Creates a rubber stamp annotation.

public void CreateRubberStamp(int page, Rectangle annotRect, string annotContents, Color color, 
    string appearanceFile)
Parameter Type Description
page Int32 The number of original page where the annotation will be created.
annotRect Rectangle The annotation rectangle defining the location of the annotation on the page.
annotContents String The contents of the annotation.
color Color The colour of the annotation.
appearanceFile String The path of appearance file.

Examples

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

See Also


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

Creates a rubber stamp annotation.

public void CreateRubberStamp(int page, Rectangle annotRect, string annotContents, Color color, 
    Stream appearanceStream)
Parameter Type Description
page Int32 The number of original page where the annotation will be created.
annotRect Rectangle The annotation rectangle defining the location of the annotation on the page.
annotContents String The contents of the annotation.
color Color The colour of the annotation.
appearanceStream Stream The stream of appearance file.

Examples

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

See Also