CreateRubberStamp
Contenu
[
Cacher
]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ètre | Taper | La description |
---|---|---|
page | Int32 | Le numéro de la page d’origine où l’annotation sera créée. |
annotRect | Rectangle | Rectangle d’annotation définissant l’emplacement de l’annotation sur la page. |
icon | String | Une icône doit être utilisée pour afficher l’annotation. Valeur par défaut : ‘Brouillon’." |
annotContents | String | Le contenu de l’annotation. |
color | Color | La 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
- class PdfContentEditor
- espace de noms Aspose.Pdf.Facades
- Assemblée Aspose.PDF
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ètre | Taper | La description |
---|---|---|
page | Int32 | Le numéro de la page d’origine où l’annotation sera créée. |
annotRect | Rectangle | Rectangle d’annotation définissant l’emplacement de l’annotation sur la page. |
annotContents | String | Le contenu de l’annotation. |
color | Color | La couleur de l’annotation. |
appearanceFile | String | Le 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
- class PdfContentEditor
- espace de noms Aspose.Pdf.Facades
- Assemblée Aspose.PDF
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ètre | Taper | La description |
---|---|---|
page | Int32 | Le numéro de la page d’origine où l’annotation sera créée. |
annotRect | Rectangle | Rectangle d’annotation définissant l’emplacement de l’annotation sur la page. |
annotContents | String | Le contenu de l’annotation. |
color | Color | La couleur de l’annotation. |
appearanceStream | Stream | Le 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
- class PdfContentEditor
- espace de noms Aspose.Pdf.Facades
- Assemblée Aspose.PDF