Optional
allowAllows adding notes.
Optional
allowAllows adding replies.
Optional
allowAllows adding replies to notes created by other users.
Optional
allowAllows modifying notes created by other users.
Optional
allowAllows changing the user name.
Optional
allowAllows deleting notes or replies.
Optional
allowAllows deleting notes or replies created by other users.
Optional
allowAllows setting a status on notes or replies.
Optional
allowAllows setting a status on notes or replies created by other users.
Optional
annotationDefines the color used for temporarily highlighting an annotation on the PDF page when it is selected in the comments list within the Reply Tool.
The highlight color in hex format.
This setting is also utilized in the showAnnotationFocusOutline
method if the
color parameter is not explicitly specified.
var viewer = new DsPdfViewer("#root", { replyTool: { annotationFocusColor: "blue" } });
Optional
autoControls whether the Reply Tool automatically expands when a comment is added via the context menu.
Set to true
to enable automatic expansion,
or false
to disable it.
// Disable automatic expansion of the Reply Tool.
var viewer = new DsPdfViewer("#root", { replyTool: { autoExpandOnCommentAdd: false } });
Optional
dateSpecifies the custom format for absolute dates in comment headers.
HH:MM"] - The format to use when displaying absolute dates.
Ignored if useRelativeDates
is true
.
// Use a custom format for absolute dates.
var viewer = new DsPdfViewer("#root", { replyTool: { useRelativeDates: false, dateFormat: "dd.mm.yyyy HH:MM" } });
Optional
readEnables read-only mode, preventing any modifications.
Optional
useIf set to true
, comment icons will be filled with the color used in the annotation.
Optional
useEnables the use of relative dates in comment headers.
true
: Displays relative dates (e.g., "5 minutes ago").
false
: Displays absolute dates instead.// Enable relative dates (default behavior).
var viewer = new DsPdfViewer("#root", { replyTool: { useRelativeDates: true } });
// Disable relative dates.
var viewer = new DsPdfViewer("#root", { replyTool: { useRelativeDates: false } });
Settings for the Reply Tool.