PdfContentEditor.CreateFreeText

Méthode PdfContentEditor.CreateFreeText

Crée une annotation de texte libre dans un document PDF

public void CreateFreeText(Rectangle rect, string contents, int page)
ParamètreTypeDescription
rectRectangleLe rectangle d’annotation définissant l’emplacement de l’annotation sur la page.
contentsStringLe contenu de l’annotation.
pageInt32Le numéro de la page originale où l’annotation de texte sera créée.

Exemples

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateFreeText(new System.Drawing.Rectangle(0, 0, 100, 100), "Welcome to Aspose", 1);
editor.Save("example_out.pdf");

Voir aussi