Maximize productivity with
30% off* for a limited time
using BOOSTDEV30.
Includes 3- and 5-packs.
*Some exclusions may apply.New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.
//Loaded PDF document to export
PdfLoadedDocument document = new PdfLoadedDocument(@"Input.pdf");
int i = 0;
foreach (PdfLoadedPage loadedPage in document.Pages)
{
foreach (PdfLoadedAnnotation item in loadedPage.Annotations)
{
//Collection to export selected annotations
PdfExportAnnotationCollection collection = new PdfExportAnnotationCollection();
//Add selected annotations into collection
collection.Add(item);
//Export selected annotations into XFDF format
document.ExportAnnotations(@"Annotation" + i + ".fdf", AnnotationDataFormat.Fdf, collection);
i++;
}
} |