ImportAnnotationFromXfdf

ImportAnnotationFromXfdf(string, AnnotationType[])

Importerar de angivna anteckningarna från XFDF-filen.

public void ImportAnnotationFromXfdf(string xfdfFile, AnnotationType[] annotType)
ParameterTypBeskrivning
xfdfFileStringIndata XFDF-filen.
annotTypeAnnotationType[]Anteckningsmatrisen som ska importeras.

Exempel

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

Se även


ImportAnnotationFromXfdf(Stream, AnnotationType[])

Importerar de angivna anteckningarna från XFDF-dataström.

public void ImportAnnotationFromXfdf(Stream xfdfStream, AnnotationType[] annotType)
ParameterTypBeskrivning
xfdfStreamStreamDen ingående XFDF-dataströmmen.
annotTypeAnnotationType[]Uppsättningen av anteckningstyper som ska importeras.

Exempel

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

Se även