Skip to main content
Participant
September 24, 2020
Question

.addAnnotations and .addAnnotationsInPDF throw {"code":"FAIL","message":"Invalid time value"}

  • September 24, 2020
  • 1 reply
  • 520 views

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?

    This topic has been closed for replies.

    1 reply

    Joel Geraci
    Community Expert
    Community Expert
    September 24, 2020

    Can you share the full annotation JSON? 

    Participant
    September 24, 2020

    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"}
    Joel Geraci
    Community Expert
    Community Expert
    September 24, 2020

    The annot is working fine for me using addAnnotations. Can you share your source code?