Optionaloptions: Partial<Optional ReadonlycanThis property defines whether the user has permission to edit the group of this comment. The value of this field depends on the set of collaboration permissions defined in the JWT token.
It is only available when collaboration permissions is enabled on Server-Backed deployments.
ReadonlycreatedThe time when the comment was created.
ReadonlycreatorThe name of the person who created the comment.
ReadonlycustomArbitrary JSON-serializable data the user can attach to the comment.
Optional ReadonlygroupThis property is used to define the permission scope for a particular comment.
It is only available when collaboration permissions is enabled on Server-Backed deployments.
ReadonlyidA unique identifier for the comment. When comment is created in the UI, the viewer has to generate a unique ID.
Optional ReadonlyisThis property defines whether this comment can be deleted or not. The value of this field depends on the set of collaboration permissions defined in the JWT token.
It is only available when collaboration permissions is enabled on Server-Backed deployments.
Optional ReadonlyisThis property defines whether this comment can be edited or not. The value of this field depends on the set of collaboration permissions defined in the JWT token.
It is only available when collaboration permissions is enabled on Server-Backed deployments.
ReadonlypageThe page index that this comment resides at.
ReadonlypdfIf this comment is from the original PDF, then this ID is from that PDF note annotation that defined the comment.
ReadonlyrootThe ID of the annotation that this comment stems from. In Nutrient Web SDK, this should be either a NutrientViewer.Annotations.MarkupAnnotation or a NutrientViewer.Annotations.CommentMarkerAnnotation.
ReadonlytextThe text of the comment in xhtml/plain text format.
In case of XHTML, we support the following tags:
<b>: Bold<i>: Italic<span>: Font color, background color and underline using the style attribute (e.g. <span style="color: red; background-color: blue; text-decoration: underline">Hello</span>)p: Paragraph. You can use this to add a newline between paragraphs.a: Link. You can use this to add a link to the comment. The href attribute is required.ReadonlyupdatedThe time when the comment was last updated.
Returns a new instance of this Record type with all values set to their default values.
Returns a new instance of this Record type with the value for the specific key set to its default value.
Returns the value associated with the provided key, which may be the default value defined when creating the Record factory function.
If the requested key is not defined by this Record type, then notSetValue will be returned if provided. Note that this scenario would produce an error when using Flow or TypeScript.
OptionalnotSetValue: anyA method that returns a set of user IDs that are mentioned in the comment.
An immutable set of user IDs that are mentioned in the comment.
Deeply converts this Record to equivalent native JavaScript Object.
Note: This method may not be overridden. Objects with custom serialization to plain JS may override toJSON() instead.
Optional ReadonlycanSetGroup?: anyThis property defines whether the user has permission to edit the group of this comment. The value of this field depends on the set of collaboration permissions defined in the JWT token.
It is only available when collaboration permissions is enabled on Server-Backed deployments.
The time when the comment was created.
The name of the person who created the comment.
Arbitrary JSON-serializable data the user can attach to the comment.
Optionalgroup?: anyThis property is used to define the permission scope for a particular comment.
It is only available when collaboration permissions is enabled on Server-Backed deployments.
A unique identifier for the comment. When comment is created in the UI, the viewer has to generate a unique ID.
Optional ReadonlyisDeletable?: anyThis property defines whether this comment can be deleted or not. The value of this field depends on the set of collaboration permissions defined in the JWT token.
It is only available when collaboration permissions is enabled on Server-Backed deployments.
Optional ReadonlyisEditable?: anyThis property defines whether this comment can be edited or not. The value of this field depends on the set of collaboration permissions defined in the JWT token.
It is only available when collaboration permissions is enabled on Server-Backed deployments.
The page index that this comment resides at.
If this comment is from the original PDF, then this ID is from that PDF note annotation that defined the comment.
The ID of the annotation that this comment stems from. In Nutrient Web SDK, this should be either a NutrientViewer.Annotations.MarkupAnnotation or a NutrientViewer.Annotations.CommentMarkerAnnotation.
The text of the comment in xhtml/plain text format.
In case of XHTML, we support the following tags:
<b>: Bold<i>: Italic<span>: Font color, background color and underline using the style attribute (e.g. <span style="color: red; background-color: blue; text-decoration: underline">Hello</span>)p: Paragraph. You can use this to add a newline between paragraphs.a: Link. You can use this to add a link to the comment. The href attribute is required.The time when the comment was last updated.
Shallowly converts this Record to equivalent native JavaScript Object.
Optional ReadonlycanSetGroup?: booleanThis property defines whether the user has permission to edit the group of this comment. The value of this field depends on the set of collaboration permissions defined in the JWT token.
It is only available when collaboration permissions is enabled on Server-Backed deployments.
The time when the comment was created.
The name of the person who created the comment.
Arbitrary JSON-serializable data the user can attach to the comment.
Optionalgroup?: null | stringThis property is used to define the permission scope for a particular comment.
It is only available when collaboration permissions is enabled on Server-Backed deployments.
A unique identifier for the comment. When comment is created in the UI, the viewer has to generate a unique ID.
Optional ReadonlyisDeletable?: booleanThis property defines whether this comment can be deleted or not. The value of this field depends on the set of collaboration permissions defined in the JWT token.
It is only available when collaboration permissions is enabled on Server-Backed deployments.
Optional ReadonlyisEditable?: booleanThis property defines whether this comment can be edited or not. The value of this field depends on the set of collaboration permissions defined in the JWT token.
It is only available when collaboration permissions is enabled on Server-Backed deployments.
The page index that this comment resides at.
If this comment is from the original PDF, then this ID is from that PDF note annotation that defined the comment.
The ID of the annotation that this comment stems from. In Nutrient Web SDK, this should be either a NutrientViewer.Annotations.MarkupAnnotation or a NutrientViewer.Annotations.CommentMarkerAnnotation.
The text of the comment in xhtml/plain text format.
In case of XHTML, we support the following tags:
<b>: Bold<i>: Italic<span>: Font color, background color and underline using the style attribute (e.g. <span style="color: red; background-color: blue; text-decoration: underline">Hello</span>)p: Paragraph. You can use this to add a newline between paragraphs.a: Link. You can use this to add a link to the comment. The href attribute is required.The time when the comment was last updated.
Shallowly converts this Record to equivalent JavaScript Object.
Optional ReadonlycanSetGroup?: booleanThis property defines whether the user has permission to edit the group of this comment. The value of this field depends on the set of collaboration permissions defined in the JWT token.
It is only available when collaboration permissions is enabled on Server-Backed deployments.
The time when the comment was created.
The name of the person who created the comment.
Arbitrary JSON-serializable data the user can attach to the comment.
Optionalgroup?: null | stringThis property is used to define the permission scope for a particular comment.
It is only available when collaboration permissions is enabled on Server-Backed deployments.
A unique identifier for the comment. When comment is created in the UI, the viewer has to generate a unique ID.
Optional ReadonlyisDeletable?: booleanThis property defines whether this comment can be deleted or not. The value of this field depends on the set of collaboration permissions defined in the JWT token.
It is only available when collaboration permissions is enabled on Server-Backed deployments.
Optional ReadonlyisEditable?: booleanThis property defines whether this comment can be edited or not. The value of this field depends on the set of collaboration permissions defined in the JWT token.
It is only available when collaboration permissions is enabled on Server-Backed deployments.
The page index that this comment resides at.
If this comment is from the original PDF, then this ID is from that PDF note annotation that defined the comment.
The ID of the annotation that this comment stems from. In Nutrient Web SDK, this should be either a NutrientViewer.Annotations.MarkupAnnotation or a NutrientViewer.Annotations.CommentMarkerAnnotation.
The text of the comment in xhtml/plain text format.
In case of XHTML, we support the following tags:
<b>: Bold<i>: Italic<span>: Font color, background color and underline using the style attribute (e.g. <span style="color: red; background-color: blue; text-decoration: underline">Hello</span>)p: Paragraph. You can use this to add a newline between paragraphs.a: Link. You can use this to add a link to the comment. The href attribute is required.The time when the comment was last updated.
StaticfromComment deserializer. Converts a comment object to a NutrientViewer.Comment.
The comment to deserialize.
The deserialized comment.
StatictoComment serializer. Converts a comment to a InstantJSON compliant object.
The comment to serialize.
The serialized comment.
A text comment made by the user that stems from an existing root annotation.