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

Only show current users annotations

Community Beginner ,
Jul 17, 2024 Jul 17, 2024

Copy link to clipboard

Copied

I would like to share a PDF that allows for annotation. However, I only want the current user to see their own annotations, and no others. Is this possible? I'm assuming this needs be done via PDF Embed API?

TOPICS
How to , PDF Embed API , PDF Services API

Views

352

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 Employee ,
Jul 18, 2024 Jul 18, 2024

Copy link to clipboard

Copied

I'd take a look at the Annotation API: https://developer.adobe.com/document-services/docs/overview/pdf-embed-api/howtos_comments/

 

It lets you programatically show annotations. 

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 Expert ,
Jul 18, 2024 Jul 18, 2024

Copy link to clipboard

Copied

Do you also want someone else to be able to see all of the annotations from all users?

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 ,
Jul 18, 2024 Jul 18, 2024

Copy link to clipboard

Copied

Ideally no one should be able to see all annotations.

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 Expert ,
Jul 19, 2024 Jul 19, 2024

Copy link to clipboard

Copied

Ok - So You can use the annotations API to store the annotations in localStorage. You'd write some code to read annotations from localStorage when the file opens and to save them back when there are changes. The annotations never get saved to the PDF on the server. Would that work? If so, I can write a CodePen example.

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
Adobe Employee ,
Jul 19, 2024 Jul 19, 2024

Copy link to clipboard

Copied

To be fair though, any user can open their devtools and see LocalStorage.

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 Expert ,
Jul 22, 2024 Jul 22, 2024

Copy link to clipboard

Copied

@Raymond Camden but one user can't see another user's local storage without their login which I'd have to assume they wouldn't in a well managed environment.

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
Adobe Employee ,
Jul 22, 2024 Jul 22, 2024

Copy link to clipboard

Copied

Yes, but I was worried about them loading _all_ the annotations and then using logic to show a portion of them. 

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 ,
Jul 23, 2024 Jul 23, 2024

Copy link to clipboard

Copied

LATEST

Hi there - this sounds like almost exactly what we need. I would love to see an example in CodePen if possible.

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