ImportAnnotationFromXfdf

ImportAnnotationFromXfdf(string, AnnotationType[])

Importa le annotazioni specificate dal file XFDF.

public void ImportAnnotationFromXfdf(string xfdfFile, AnnotationType[] annotType)
ParametroTipoDescrizione
xfdfFileStringIl file XFDF di input.
annotTypeAnnotationType[]La matrice delle annotazioni da importare.

Esempi

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

Guarda anche


ImportAnnotationFromXfdf(Stream, AnnotationType[])

Importa le annotazioni specificate dal flusso di dati XFDF.

public void ImportAnnotationFromXfdf(Stream xfdfStream, AnnotationType[] annotType)
ParametroTipoDescrizione
xfdfStreamStreamIl flusso di dati XFDF di input.
annotTypeAnnotationType[]L’array di tipi di annotazioni da importare.

Esempi

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

Guarda anche