51
loading...
This website collects cookies to deliver better user experience
// Export the annotation data to an FDF file in the 'D' folder named "Annotations.fdf".
pdfViewer.ExportAnnotations(@"D:\Annotations.fdf", AnnotationDataFormat.Fdf);
// Export the annotation data to an XFDF file in the 'D' folder named "Annotations.xfdf".
pdfViewer.ExportAnnotations(@"D:\Annotations.xfdf", AnnotationDataFormat.XFdf);
Stream stream = new MemoryStream();
// Export the annotations to a stream in XFDF format.
pdfViewer.ExportAnnotations(stream, AnnotationDataFormat.XFdf);
// Import the annotations from an FDF file in the 'D' folder named "Annotations.fdf".
pdfViewer.ImportAnnotations(@"D:\Annotations.fdf", AnnotationDataFormat.Fdf);
// Import annotations from an XFDF file in the 'D' folder named "Annotations.xfdf".
pdfViewer.ImportAnnotations(@"D:\Annotations.xfdf", AnnotationDataFormat.XFdf);
Stream stream = new FileStream(@"D:\Annotations.xfdf", FileMode.Open);
// Imports annotations from a stream object.
pdfViewer.ImportAnnotations(stream, annotationDataFormat);