Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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/C...
The addAnnotations function can be called to load in annotations fetched from the server.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
Could it be that you're perhaps passing the date as string instead of a date object?