Stop comments pane from opening with every annotation Hi, I'm building a tool, that compares article numbers on two different documents and highlights the article numbers that couldn't be found in the other document. I'm creating an array of annotations in the backend, which I'm sending to adobe with the file as follows: var viewerConfig = {
enableAnnotationAPIs: true,
includePDFAnnotations: true,
showCommentsPane: false
};
document.addEventListener("adobe_dc_view_sdk.ready", function(){
var adobeDCView = new AdobeDC.View({clientId: "i put my id here", divId: "adobe-dc-view2"});
var previewFilePromise = adobeDCView.previewFile(
{
content: {location: {url: "{% static 'pdfs/adobe/doc2.pdf' %}"}},
metaData: {fileName: "doc2.pdf", id: "{{docId}}"},
}, viewerConfig);
var annotations = '{{annotations}}'.replace(/'/g,"\"");
console.log(annotations)
annotations = JSON.parse(annotations)
previewFilePromise.then(function (adobeViewer) {