Frameworks
React Native
Flutter
Package samples
Cookbook
Version 11
Version 10
Version 9
Version 8
Version 7
Version 6
Version 5
Apryse supports annotation syncing between different clients to allow for collaboration. All the required locking, change tracking, merging and view updating are handled internally. Below are instructions on how to handle the import and export of annotation changes on the client side. While the server component is not described here, that implementation would be straightforward. The server would receive XFDF XML data, which it would then pass onto all other active clients that are part of the collaboration session. The clients take care of the updating. The server can store any XFDF data as it likes, since the data is just an XML string.
Here are a few requirements for syncing to work as expected:
Alice
was used for the userId, however, was later changed to AliceB
, the viewer will no longer treat it as the same user. Therefore, we recommend that you generate a UUID for each user.Add the following after ToolManager
is initialized:
PDFNet will generate a unique identifier for every annotation created through the Apryse SDK. However, if you would like to generate your own annotation identifier, you are able to do so as follows:
When an annotation change event is received from a remote service, add the following to notify the viewer about the change:
To jump to an annotation by id:
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales