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ètreTaperLa description
rectRectangleRectangle d’annotation définissant l’emplacement de l’annotation sur la page.
titleStringTitre de l’annotation.
contentsStringLe contenu de l’annotation.
openBooleanUn indicateur spécifiant si l’annotation doit initialement être affichée ouverte.
iconStringLe nom d’une icône sera utilisé pour afficher l’annotation. Cette valeur peut être : “Commentaire”, “Clé”, “Note”, “Aide”, “NouveauParagraphe”, “Paragraphe”, “Insérer”
pageInt32Le 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