Copy link to clipboard
Copied
Hi.
My user interface stores the JSON annotation data separate from the PDF files.
I know that I can load the annotation JSON data on the PDF file using the Embed API in the front-end. However, is there any way to merge the JSON data into the PDF file on server side?
Copy link to clipboard
Copied
There's no API yet for adding annotations to a PDF. You could save the bits from Embed to a server though w/ client-side JavaScript.
Copy link to clipboard
Copied
Thanks Raymond!
We are able to save the JSON annotation from the client-side successfully.
However, we want to allow the users to bulk download their annotated PDF files. To do that, we have to merge the PDF files with JSON annotation on server side before allowing the download.
I understand that the annotation JSON is W3C compliant. Is there any way of adding these annotations to a PDF from server side?
Copy link to clipboard
Copied
Not at this time, no. But keep in mind that Embed gives you binary access to the edited PDF with annotations, you can write code to 'hook' into the save process, and send it to your server. You would need server-side code to handle that though.