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

New Here ,
Sep 24, 2020 Sep 24, 2020

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?

Views

113

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Sep 24, 2020 Sep 24, 2020

Copy link to clipboard

Copied

Can you share the full annotation JSON? 

Likes

Translate

Translate

Report

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

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"}

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Sep 24, 2020 Sep 24, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Sep 24, 2020 Sep 24, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

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