DrawCurve

PdfContentEditor.DrawCurve method

Erstellt eine Kurvenbeschriftung.

public void DrawCurve(LineInfo lineInfo, int page, Rectangle annotRect, string annotContents)
ParameterTypBeschreibung
lineInfoLineInfoDie Instanz der LineInfo-Klasse.
pageInt32Die Nummer der Originalseite, auf der die Anmerkung erstellt wird.
annotRectRectangleDas Anmerkungsrechteck, das die Position der Anmerkung auf der Seite definiert.
annotContentsStringDer Inhalt der Anmerkung.

Beispiele

PdfContentEditor editor = new PdfContentEditor();
newApiEditor.BindPdf("example.pdf");
LineInfo lineInfo = new LineInfo();
lineInfo.VerticeCoordinate = new float[] { 0, 0, 100, 100 };  //x1, y1, x2, y2, .. xn, yn
lineInfo.Visibility = true;
editor.DrawCurve(lineInfo, 1, new System.Drawing.Rectangle(0, 0, 0, 0), "Welcome to Aspose");
editor.Save("example_out.pdf");

Siehe auch