Copy link to clipboard
Copied
I am attempting to pull annotations from my server into Embed API. I have successfully saved them to the server and then pulled them back down to the client, but when adding them with .addAnnotations or .addAnnotationsInPDF, it throws a {"code":"FAIL","message":"Invalid time value"}. I have checked the schema, all is well there, and both the "created" and "modified" times look correct. Any ideas?
Copy link to clipboard
Copied
Can you share the full annotation JSON?
Copy link to clipboard
Copied
Certainly:
{"@context":["https://www.w3.org/ns/anno.jsonld","https://comments.acrobat.com/ns/anno.jsonld"],"id":"74819d8a-564f-8092-20h1-f8796897bbc","type":"Annotation","motivation":"commenting","bodyValue":"","target":{"source":"Example.pdf6d07d124-ac85-43b3-a867-36930f502ac6","selector":{"node":{"index":0},"opacity":0.4,"subtype":"note","boundingBox":[544.1307220953984,682.4385437943049,561.0428931875526,700.0860266730746],"strokeColor":"#fccb00","strokeWidth":3,"type":"AdobeAnnoSelector"}},"creator":{"name":"Myname","type":"Person"},"created":"2020-09-24T20:09:03Z","modified":"2020-09-24T20:09:03Z"}
Copy link to clipboard
Copied
The annot is working fine for me using addAnnotations. Can you share your source code?
Copy link to clipboard
Copied
Yeah - the time format is correct. I'll need to dig into this more.