PdfAnnotationEditor.ModifyAnnotations

Método PdfAnnotationEditor.ModifyAnnotations

Modifica las anotaciones del tipo especificado en el rango de páginas especificado. Soporta modificar las siguientes propiedades de la anotación: Modificado, Título, Contenidos, Color, Asunto y Abrir.

public void ModifyAnnotations(int start, int end, Annotation annotation)
ParámetroTipoDescripción
startInt32El número de página de inicio.
endInt32El número de página final.
annotationAnnotationEl 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