CreateRubberStamp

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

Crée une annotation de tampon en caoutchouc.

public void CreateRubberStamp(int page, Rectangle annotRect, string icon, string annotContents, 
    Color color)
ParamètreTaperLa description
pageInt32Le numéro de la page d’origine où l’annotation sera créée.
annotRectRectangleRectangle d’annotation définissant l’emplacement de l’annotation sur la page.
iconStringUne icône doit être utilisée pour afficher l’annotation. Valeur par défaut : ‘Brouillon’."
annotContentsStringLe contenu de l’annotation.
colorColorLa couleur de l’annotation.

Exemples

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

Voir également


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

Crée une annotation de tampon en caoutchouc.

public void CreateRubberStamp(int page, Rectangle annotRect, string annotContents, Color color, 
    string appearanceFile)
ParamètreTaperLa description
pageInt32Le numéro de la page d’origine où l’annotation sera créée.
annotRectRectangleRectangle d’annotation définissant l’emplacement de l’annotation sur la page.
annotContentsStringLe contenu de l’annotation.
colorColorLa couleur de l’annotation.
appearanceFileStringLe chemin du fichier d’apparence.

Exemples

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

Voir également


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

Crée une annotation de tampon en caoutchouc.

public void CreateRubberStamp(int page, Rectangle annotRect, string annotContents, Color color, 
    Stream appearanceStream)
ParamètreTaperLa description
pageInt32Le numéro de la page d’origine où l’annotation sera créée.
annotRectRectangleRectangle d’annotation définissant l’emplacement de l’annotation sur la page.
annotContentsStringLe contenu de l’annotation.
colorColorLa couleur de l’annotation.
appearanceStreamStreamLe flux du fichier d’apparence.

Exemples

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

Voir également