Detailed description of issue
On exporting annotations on viewer, which is the best way to export all the annotations made on the document ? Can u pls help us navigate through these 2 techniques?
Thanks
Expected behaviour
{Provide a screenshot or description of the expected behaviour}
Does your issue happen with every document, or just one?
{Answer here}
Link to document
{Provide a link to the document in question if possible}
At the end of the day both of these functions do the same thing, export annotations as a string. The only difference is the format that the annotations are output in.
exportAnnotations exports annotations as an XFDF string, which is the standard format for annotations in PDFs.
exportAnnotCommand exports a proprietary format that we use internally for annotations.
I recommend using exportAnnotations since it matches the PDF Standard and is easy to parse/understand/use.