Save pdf with annotations on server

Hi,

We want to save PDF with annotations on our server using API. Please provide documentation or code for save the PDF file.

Thanks.

Hello, Iā€™m an automated tech support bot.

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Hi,

This is a bit of a vague question but I will do my best.

To save the PDF as a blob, you can follow this guide. You will then want to send that blob to your server and then you can do whatever you wish with it. Note that the annotations WILL NOT BE SAVED into the document, as Express does not support this feature.

To export the annotations as XFDF, you can call:

const xfdfString = await instance.annotManager.exportAnnotations({ links: false, widgets: false });

You can than either store that XFDF in a database, or merge it into the document on your server using some other library.

Alternatively, you can merge the XFDF using our rest api.

Thanks,
Logan

Thank you for your valuable reply. I will check and apply it our system.

1 Like