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

Storing View SDK annotations server side

New Here ,
Jun 26, 2020 Jun 26, 2020

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.

Views

343

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
Community Beginner ,
Sep 05, 2020 Sep 05, 2020

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.

Votes

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

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?

Votes

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

Copy link to clipboard

Copied

LATEST

Could it be that you're perhaps passing the date as string instead of a date object?

Votes

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
Resources