Adding Instant comments to PDFs in React Native

Licensing

Licensing for comments is handled on the server rather than on the client, so this feature requires a separate component in your Nutrient Document Engine license. Without this included in your Document Engine license, you won’t be able to add the functionality of viewing, searching, or adding comments in your application. Contact our Sales team to add comments to your license. You don’t need an additional component in your Nutrient React Native SDK license.

If you’re a new customer, you can try comments without a license key. If you’re an existing customer, ask our Sales team for a trial license if you’re interested.

Terminology

Before starting, here are a few key terms related to comments:

  • Root annotation — The annotation to which all the comments in a single thread are linked.
  • Comment thread — A group of comments associated with the same root annotation.
  • Comment — A single comment added by a user.

Root annotation types

All comments are linked to their respective root annotations. The comments with the same root annotation are part of a single comment thread. There can be two types of root annotations:

Getting started

Adding a comment

You can add comments in two ways, depending on the type of root annotation.

At the moment, we don’t support the addition of comments or comment marker annotations using programmatic APIs. This is something that might change in the future.

Mentions aren’t supported

Mentioning users in a comment isn’t supported in Nutrient React Native SDK. Mentions are only available in Nutrient Web SDK.

Deleting a comment

Document Engine currently doesn’t expose any APIs for deleting a comment.

Comment editing isn’t supported in the current version.