ModifyAnnotations
PdfAnnotationEditor.ModifyAnnotations method
Modifica las anotaciones del tipo especificado en el rango de página especificado. Admite modificar las propiedades de la siguiente anotación: Modificado, Título, Contenido, Color, Asunto y Abierto.
public void ModifyAnnotations(int start, int end, Annotation annotation)
Parámetro | Escribe | Descripción |
---|---|---|
start | Int32 | El número de la página de inicio. |
end | Int32 | El número de página final. |
annotation | Annotation | El objeto de anotación contiene nuevas propiedades. |
Ejemplos
PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
TextAnnotation annot = new TextAnnotation();
annot.Modified = DateTime.Now;
annot.Title = "NEW AUTHOR";
annot.Contents = "NEW CONTENTS";
annot.Color = Color.Red;
annot.Subject = "NEW SUBJECT";
annot.Open = true;
editor.ModifyAnnotations(1, 2, annot);
editor.Save("example_out.pdf");
Ver también
- class Annotation
- class PdfAnnotationEditor
- espacio de nombres Aspose.Pdf.Facades
- asamblea Aspose.PDF