I am creating a PDF viewer and i want to hide comments option and want to save it automatically if user do anything in the document like adding annotation etc
this is the code that i have written,
let dumyKey = id + "_" + uuid();
let config = {
documentType: "word",
height: "100%",
width: "100%",
comment: false,
comments: false,
copy: true,
autosave: true,
forcesave: true,
document: {
key: dumyKey,
title: pdf.file_name,
url: pdf.file_url,
fileType: "pdf",
comment: false,
comments: false,
copy: true,
autosave: true,
forcesave: true,
permissions: {
download: false,
print: false,
chat: false,
save: true,
copy: true,
autosave: true,
forcesave: true,
comment: false,
comments: false,
},
},
editorConfig: {
mode: "edit",
forcesave: true,
forcesavetype: 1,
status: 6,
autosave: true,
comment: false,
comments: false,
user: {
id: authState.user_id,
},
customization: {
comment: false,
comments: false,
autosave: true,
forcesave: true,
anonymous: {
request: false,
},
},
},
};
new window.DocsAPI.DocEditor("onlyOffice-pdf", config);
i have attached screenshot of the viewer how it looks like