Hi. I am using the server side Blazor PDF Viewer. Multiple users access the same document which is loaded from a memory stream. In order to save/restore a unique set of annotations for each user, I need a uniqueId for each user. After some experimenting, it seems that Load() and ImportAnnotations() both provide "uniqueId" in jsonObject. However, ExportAnnotations() does not. "hashId" seems to be unique to the particular document loaded from memory stream. Is "elementId" unique to each user (browser)?
I am thinking that you should add "uniqueId" to jsonObject in ExportAnnotations(). I could work around this for now if "elementId" is unique to each user. Is that the case?
Your thoughts?
Regards,
Arthur
Thank you. I want each user to have a separate set of annotations and not be able to see the other user's annotations. There are three variables here. Please correct me if my understanding is wrong,
hashId => unique for each document
uniqueId => unique value generated each time Load() is called, but is the same in future calls to ImportAnnotations
elementId => id of the PDF Viewer component
It would be helpful if uniqueId was also available in ExportAnnotations. Here is how I am currently keeping track of a user in my app:
Regards,
Arthur
|
Client Blazor |
|
|
Blazor Sever |
|