PdfAnnotationEditor.ImportAnnotationFromXfdf

ImportAnnotationFromXfdf(string, AnnotationType[])

Importa las anotaciones especificadas desde un archivo XFDF.

public void ImportAnnotationFromXfdf(string xfdfFile, AnnotationType[] annotType)
ParámetroTipoDescripción
xfdfFileStringEl archivo XFDF de entrada.
annotTypeAnnotationType[]El arreglo de anotaciones que se van 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 un flujo de datos XFDF.

public void ImportAnnotationFromXfdf(Stream xfdfStream, AnnotationType[] annotType)
ParámetroTipoDescripción
xfdfStreamStreamEl flujo de datos XFDF de entrada.
annotTypeAnnotationType[]El arreglo 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