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?
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.
Copy link to clipboard
Copied
Do you also want someone else to be able to see all of the annotations from all users?
Copy link to clipboard
Copied
Ideally no one should be able to see all annotations.
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.
Copy link to clipboard
Copied
To be fair though, any user can open their devtools and see LocalStorage.
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.
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.
Copy link to clipboard
Copied
Hi there - this sounds like almost exactly what we need. I would love to see an example in CodePen if possible.