Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Sep 24, 2020 Sep 24, 2020

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?

466
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 24, 2020 Sep 24, 2020

Can you share the full annotation JSON? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 24, 2020 Sep 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"}
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 24, 2020 Sep 24, 2020
LATEST

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

 

Screen Shot 2020-09-24 at 2.39.06 PM.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 24, 2020 Sep 24, 2020

Yeah - the time format is correct. I'll need to dig into this more.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources