CreateCaret

PdfContentEditor.CreateCaret method

Crea una anotación de intercalación.

public void CreateCaret(int page, Rectangle annotRect, Rectangle caretRect, string symbol, 
    string annotContents, Color color)
ParámetroEscribeDescripción
pageInt32El número de página original donde se creará la anotación.
annotRectRectangleEl rectángulo de anotación que define la ubicación de la anotación en la página.
caretRectRectangleLos límites reales del símbolo de intercalación subyacente.
symbolStringSe asociará un símbolo con el símbolo de intercalación. El valor puede ser: “P” (Párrafo), “Ninguno”.
annotContentsStringEl contenido de la anotación.
colorColorEl color de la anotación.

Ejemplos

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateCaret(1,
    new System.Drawing.Rectangle(50, 50, 100, 100),
    new System.Drawing.Rectangle(60, 60, 70, 70),
    "None", "Welcome to Aspose", System.Drawing.Color.Red);
editor.Save("example_out.pdf");

Ver también