PdfAnnotationEditor.ImportAnnotationsFromXfdf

ImportAnnotationsFromXfdf(string)

Imports all annotations from XFDF file.

public void ImportAnnotationsFromXfdf(string xfdfFile)
ParameterTypeDescription
xfdfFileStringThe input XFDF file.

Examples

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
editor.ImportAnnotationsFromXfdf("annots.xfdf");
editor.Save("example_out.pdf");

See Also


ImportAnnotationsFromXfdf(Stream)

Imports all annotations from XFDF data stream.

public void ImportAnnotationsFromXfdf(Stream xfdfStream)
ParameterTypeDescription
xfdfStreamStreamThe input XFDF data stream.

Examples

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
editor.ImportAnnotationsFromXfdf(File.OpenRead("annots.xfdf"));
editor.Save("example_out.pdf");

See Also