PdfContentEditor.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)
ParameterTypeDescription
pageInt32The number of original page where the annotation will be created.
annotRectRectangleThe annotation rectangle defining the location of the annotation on the page.
iconStringAn icon is to be used in displaying the annotation. Default value: ‘Draft’.
annotContentsStringThe contents of the annotation.
colorColorThe color 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)
ParameterTypeDescription
pageInt32The number of original page where the annotation will be created.
annotRectRectangleThe annotation rectangle defining the location of the annotation on the page.
annotContentsStringThe contents of the annotation.
colorColorThe colour of the annotation.
appearanceFileStringThe 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)
ParameterTypeDescription
pageInt32The number of original page where the annotation will be created.
annotRectRectangleThe annotation rectangle defining the location of the annotation on the page.
annotContentsStringThe contents of the annotation.
colorColorThe colour of the annotation.
appearanceStreamStreamThe 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