ImportAnnotationFromXfdf

ImportAnnotationFromXfdf(string, AnnotationType[])

Importiert die angegebenen Anmerkungen aus der XFDF-Datei.

public void ImportAnnotationFromXfdf(string xfdfFile, AnnotationType[] annotType)
ParameterTypBeschreibung
xfdfFileStringDie XFDF-Eingabedatei.
annotTypeAnnotationType[]Das zu importierende Anmerkungsarray.

Beispiele

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes = {AnnotationType.Highlight, AnnotationType.Text};
editor.ImportAnnotationFromXfdf("annots.xfdf", annotTypes);
editor.Save("example_out.pdf");

Siehe auch


ImportAnnotationFromXfdf(Stream, AnnotationType[])

Importiert die angegebenen Anmerkungen aus dem XFDF-Datenstrom.

public void ImportAnnotationFromXfdf(Stream xfdfStream, AnnotationType[] annotType)
ParameterTypBeschreibung
xfdfStreamStreamDer Eingabe-XFDF-Datenstrom.
annotTypeAnnotationType[]Das Array der zu importierenden Anmerkungstypen.

Beispiele

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes ={ AnnotationType.Highlight, AnnotationType.Line };
editor.ImportAnnotationFromXfdf(File.OpenRead("annots.xfdf"), annotTypes);
editor.Save("example_out.pdf");

Siehe auch