We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Save Annotations in individual FDF Files

Thread ID:





147006 Aug 28,2019 10:54 AM UTC Sep 2,2019 10:08 AM UTC WPF 3
Tags: PDF
Pulkit Goyal
Asked On August 28, 2019 11:00 AM UTC

Hi Team,

I am creating a sample application where the comments and annotations on a PDF made by one user, needs to be viewed in a list and can also be shared with other user on the same platform. So far I have extracted the annotations made on a PDF file as FDF file format but the problem is that it generates one FDF file for all the annotations wherein the User can select a singe annotation to be shared individually.

Is there a method by which for each annotation, a separate FDF file is created?

Else, can I extract individual annotations from a single FDF file? Is there any alternative method to achieve this is Syncfusion

Thanks for your help.

Sowmiya Loganathan [Syncfusion]
Replied On August 29, 2019 01:11 PM UTC

Hi Pulkit, 

Thank you for contacting Syncfusion support.  

We can export individual annotation data from a single PDF document. Please refer the below code snippet for more details, 

//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 
        //Export selected annotations into XFDF format 
        document.ExportAnnotations(@"Annotation" + i + ".fdf", AnnotationDataFormat.Fdf, collection); 

Please find the sample for the same from below link, 

Please try the above sample in your end and let us know if it satisfies your requirement.  

Sowmiya L 

Pulkit Goyal
Replied On August 30, 2019 06:58 AM UTC

Hi Sowmiya,

Thanks a lot for your help on this. 

Much appreciate.

Surya Kumar [Syncfusion]
Replied On September 2, 2019 10:08 AM UTC

Hi Pulkit, 

We are glad to know that we are helpful.  

Surya Kumar 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon