Skip to main content
travisk26838575
Participant
June 26, 2020
Question

Storing View SDK annotations server side

  • June 26, 2020
  • 1 reply
  • 660 views

Has anyone stored View Cloud SDK PDF annotations server side?

 

It looks like it should be easy enough to do, but just seeing if anyone else has done it.

    This topic has been closed for replies.

    1 reply

    Known Participant
    September 5, 2020

    I actually did. There is an example on github which shows how to listen to annotation events which you can use to trigger API calls to save them; https://github.com/adobe/pdf-embed-api-samples/blob/master/More%20Samples/PDF%20Annotations%20APIs/Capture%20Events/index.js
    The addAnnotations function can be called to load in annotations fetched from the server.

    Participant
    September 24, 2020

    I know I am resurrectin g a bit of an old thread.  But, I am attempting to do this very thing, but get a {"code":"FAIL","message":"Invalid time value"} when adding the annotations in using either .addAnnotations or .addAnnotationsInPDF.  I have checked the JSON schema and all is well there, plus both the "created" and "modified" times look correct.  Any ideas?

    Known Participant
    September 25, 2020

    Could it be that you're perhaps passing the date as string instead of a date object?