[]
ReplyToolSettings:
object
Settings for the Reply Tool.
optional
allowAddNote:boolean
Allows adding notes.
optional
allowAddReply:boolean
Allows adding replies.
optional
allowAddReplyOtherUser:boolean
Allows adding replies to notes created by other users.
optional
allowChangeOtherUser:boolean
Allows modifying notes created by other users.
optional
allowChangeUserName:boolean
Allows changing the user name.
optional
allowDelete:boolean
Allows deleting notes or replies.
optional
allowDeleteOtherUser:boolean
Allows deleting notes or replies created by other users.
optional
allowStatus:boolean
Allows setting a status on notes or replies.
optional
allowStatusOtherUser:boolean
Allows setting a status on notes or replies created by other users.
optional
annotationFilter: (annotation
,index
,array
) =>undefined
|boolean
Optional filter function to determine which annotations should be displayed in the Reply Tool.
If the function returns true
, the annotation is shown; if false
, it is hidden.
If not provided, the default behavior is used.
The annotation being evaluated.
number
The index of the annotation in the array.
The full list of annotations.
undefined
| boolean
true
to display the annotation, false
to hide it.
// Show only text annotations in the Reply Tool
var viewer = new DsPdfViewer("#root", {
replyTool: {
annotationFilter: (annotation) => annotation.annotationType === 1 // AnnotationType.TEXT
}
});
optional
annotationFocusColor:string
Defines the color used for temporarily highlighting an annotation on the PDF page when it is selected in the comments list within the Reply Tool.
var viewer = new DsPdfViewer("#root", { replyTool: { annotationFocusColor: "blue" } });
optional
autoExpandOnCommentAdd:boolean
Controls whether the Reply Tool automatically expands when a comment is added via the context menu.
// Disable automatic expansion of the Reply Tool.
var viewer = new DsPdfViewer("#root", { replyTool: { autoExpandOnCommentAdd: false } });
optional
dateFormat:string
Specifies the custom format for absolute dates in comment headers.
// Use a custom format for absolute dates.
var viewer = new DsPdfViewer("#root", { replyTool: { useRelativeDates: false, dateFormat: "dd.mm.yyyy HH:MM" } });
optional
readOnly:boolean
Enables read-only mode, preventing any modifications.
optional
useColoredIcons:boolean
If set to true
, comment icons will be filled with the color used in the annotation.
optional
useRelativeDates:boolean
Enables the use of relative dates in comment headers.
// Enable relative dates (default behavior).
var viewer = new DsPdfViewer("#root", { replyTool: { useRelativeDates: true } });
// Disable relative dates.
var viewer = new DsPdfViewer("#root", { replyTool: { useRelativeDates: false } });