Skip to main content
travisk26838575
Participant
Jun 26, 2020 10:12 PM UTC
Question

Storing View SDK annotations server side

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 is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    Known Participant
    Sep 5, 2020 3:07 PM UTC

    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.

    Translate
    Participant
    Sep 24, 2020 5:26 PM UTC

    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?

    Translate
    Known Participant
    Sep 25, 2020 12:35 AM UTC

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

    Translate