PdfAnnotationEditor.ImportAnnotationFromXfdf
Contents
[
Hide
]ImportAnnotationFromXfdf(string, AnnotationType[])
Imports the specified annotations from XFDF file.
public void ImportAnnotationFromXfdf(string xfdfFile, AnnotationType[] annotType)
Parameter | Type | Description |
---|---|---|
xfdfFile | String | The input XFDF file. |
annotType | AnnotationType[] | The annotations array to be imported. |
Examples
PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes = {AnnotationType.Highlight, AnnotationType.Text};
editor.ImportAnnotationFromXfdf("annots.xfdf", annotTypes);
editor.Save("example_out.pdf");
See Also
- enum AnnotationType
- class PdfAnnotationEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
ImportAnnotationFromXfdf(Stream, AnnotationType[])
Imports the specified annotations from XFDF data stream.
public void ImportAnnotationFromXfdf(Stream xfdfStream, AnnotationType[] annotType)
Parameter | Type | Description |
---|---|---|
xfdfStream | Stream | The input XFDF data stream. |
annotType | AnnotationType[] | The array of annotation types to be imported. |
Examples
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");
See Also
- enum AnnotationType
- class PdfAnnotationEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF