Skip to main content
Participant
May 24, 2024
Question

PDF Embed API - merge annotations server side

  • May 24, 2024
  • 1 reply
  • 713 views

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?

This topic has been closed for replies.

1 reply

Raymond Camden
Community Manager
Community Manager
May 24, 2024

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. 

vmitAuthor
Participant
May 31, 2024

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?

Raymond Camden
Community Manager
Community Manager
May 31, 2024

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.