Annotations on documents

Hi

Is there a way to add all annotations to a document (PDF) without creating separate annotation objects like Text, FreeForm ?

I understand that we can add annotations like as mentioned below
Adding Annotations to existing PDF file|Aspose.PDF for .NET.

But, is there a single API which takes in all annotations probably as a string and draw it ?

@sushma1509

Is it possible that you could provide a little more details like what type of input you expect to use in order to create all type of annotations? Do you expect the API to take some template file (.txt/.xml) and apply annotations to a PDF?

Yes… input can either be a string which contains all annotations and related details or xml file.
Basically any API which understands what are the type of annotations and how many and draw it all at once on a page.
Else, I need to do the parsing and write lot of if conditions for each type of annotation.
Just trying to understand if there is any way we can avoid this

@sushma1509

Maybe you can use the functionality to import/export annotations using XFDF files. Please check the below sample articles and let us know if it does not suit your requirements.