CreatePolygon

PdfContentEditor.CreatePolygon method

لإنشاء تعليق توضيحي على شكل مضلع .

public void CreatePolygon(LineInfo lineInfo, int page, Rectangle annotRect, string annotContents)
معامليكتبوصف
lineInfoLineInfoمثيل فئة LineInfo.
pageInt32رقم الصفحة الأصلية حيث سيتم إنشاء التعليق التوضيحي.
annotRectRectangleمستطيل التعليق التوضيحي الذي يحدد موقع التعليق التوضيحي على الصفحة.
annotContentsStringمحتويات الشرح.

أمثلة

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");

أنظر أيضا