CreateFreeText

PdfContentEditor.CreateFreeText method

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

public void CreateFreeText(Rectangle rect, string contents, int page)
ParamètreTaperLa description
rectRectangleRectangle d’annotation définissant l’emplacement de l’annotation sur la page.
contentsStringLe contenu de l’annotation.
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.CreateFreeText(new System.Drawing.Rectangle(0, 0, 100, 100), "Welcome to Aspose", 1);
editor.Save("example_out.pdf");

Voir également