ImportAnnotationFromXfdf

ImportAnnotationFromXfdf(string, AnnotationType[])

Importa las anotaciones especificadas del archivo XFDF.

public void ImportAnnotationFromXfdf(string xfdfFile, AnnotationType[] annotType)
ParámetroEscribeDescripción
xfdfFileStringEl archivo XFDF de entrada.
annotTypeAnnotationType[]La matriz de anotaciones que se va a importar.

Ejemplos

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

Ver también


ImportAnnotationFromXfdf(Stream, AnnotationType[])

Importa las anotaciones especificadas desde el flujo de datos XFDF.

public void ImportAnnotationFromXfdf(Stream xfdfStream, AnnotationType[] annotType)
ParámetroEscribeDescripción
xfdfStreamStreamEl flujo de datos XFDF de entrada.
annotTypeAnnotationType[]La matriz de tipos de anotaciones que se van a importar.

Ejemplos

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

Ver también