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

Only show current users annotations

Community Beginner ,
Jul 17, 2024 Jul 17, 2024

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

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. 

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

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

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

Ideally no one should be able to see all annotations.

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

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.

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

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

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

@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.

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

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

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

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

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