CreateText
PdfContentEditor.CreateText method
Crée une annotation de texte dans un document PDF
public void CreateText(Rectangle rect, string title, string contents, bool open, string icon,
int page)
Paramètre | Taper | La description |
---|---|---|
rect | Rectangle | Rectangle d’annotation définissant l’emplacement de l’annotation sur la page. |
title | String | Titre de l’annotation. |
contents | String | Le contenu de l’annotation. |
open | Boolean | Un indicateur spécifiant si l’annotation doit initialement être affichée ouverte. |
icon | String | Le nom d’une icône sera utilisé pour afficher l’annotation. Cette valeur peut être : “Commentaire”, “Clé”, “Note”, “Aide”, “NouveauParagraphe”, “Paragraphe”, “Insérer” |
page | Int32 | Le numéro de la page d’origine où l’annotation de texte sera créée. |
Exemples
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateText(new System.Drawing.Rectangle(0, 0, 100, 100),
"Welcome to Aspose", "You are welcome to Aspose!", true, "Key", 1);
editor.Save("example_out.pdf");
Voir également
- class PdfContentEditor
- espace de noms Aspose.Pdf.Facades
- Assemblée Aspose.PDF