Skip to main content
Participant
July 18, 2024
Question

Only show current users annotations

  • July 18, 2024
  • 2 replies
  • 929 views

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?

This topic has been closed for replies.

2 replies

Joel Geraci
Community Expert
Community Expert
July 18, 2024

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

Participant
July 19, 2024

Ideally no one should be able to see all annotations.

Joel Geraci
Community Expert
Community Expert
July 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.

Raymond Camden
Community Manager
Community Manager
July 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.