PdfAnnotationEditor.ModifyAnnotations
Contenido
[
Ocultar
]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ámetro | Tipo | Descripción |
|---|---|---|
| start | Int32 | El número de 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
- clase Annotation
- clase PdfAnnotationEditor
- espacio de nombres Aspose.Pdf.Facades
- ensamblado Aspose.PDF