ImportAnnotationFromXfdf

ImportAnnotationFromXfdf(string, AnnotationType[])

Importe les annotations spécifiées à partir du fichier XFDF.

public void ImportAnnotationFromXfdf(string xfdfFile, AnnotationType[] annotType)
ParamètreTaperLa description
xfdfFileStringLe fichier XFDF d’entrée.
annotTypeAnnotationType[]Le tableau d’annotations à importer.

Exemples

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

Voir également


ImportAnnotationFromXfdf(Stream, AnnotationType[])

Importe les annotations spécifiées à partir du flux de données XFDF.

public void ImportAnnotationFromXfdf(Stream xfdfStream, AnnotationType[] annotType)
ParamètreTaperLa description
xfdfStreamStreamLe flux de données XFDF d’entrée.
annotTypeAnnotationType[]Tableau des types d’annotations à importer.

Exemples

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");

Voir également