ModifyAnnotations
PdfAnnotationEditor.ModifyAnnotations method
Ändert die Anmerkungen des angegebenen Typs im angegebenen Seitenbereich. Es unterstützt die Änderung der nächsten Anmerkungseigenschaften: Geändert, Titel, Inhalt, Farbe, Betreff und Öffnen.
public void ModifyAnnotations(int start, int end, Annotation annotation)
Parameter | Typ | Beschreibung |
---|---|---|
start | Int32 | Die Startseitennummer. |
end | Int32 | Die letzte Seitenzahl. |
annotation | Annotation | Das Anmerkungsobjekt enthält neue Eigenschaften. |
Beispiele
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");
Siehe auch
- class Annotation
- class PdfAnnotationEditor
- namensraum Aspose.Pdf.Facades
- Montage Aspose.PDF