CreatePolygon

PdfContentEditor.CreatePolygon method

Crée une annotation de polygone.

public void CreatePolygon(LineInfo lineInfo, int page, Rectangle annotRect, string annotContents)
ParamètreTaperLa description
lineInfoLineInfoL’instance de la classe LineInfo.
pageInt32Le numéro de la page d’origine où l’annotation sera créée.
annotRectRectangleRectangle d’annotation définissant l’emplacement de l’annotation sur la page.
annotContentsStringLe contenu de l’annotation.

Exemples

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
LineInfo lineInfo = new LineInfo();
lineInfo.VerticeCoordinate = new float[] { 0, 0, 100, 100, 100, 50 };
lineInfo.Visibility = true;
editor.CreatePolygon(lineInfo, 1 , new System.Drawing.Rectangle(0, 0, 0, 0), "Welcome to Aspose");
editor.Save("example_out.pdf");

Voir également