Copy link to clipboard
Copied
I want to disable comments in sidebar
Setting showAnnotationTools: false solves it but it disables PDF annotations altogether, I need a way to disable the comments sidebar only.
is there a way to do this?
Copy link to clipboard
Copied
Looking at the docs in regards to customization (https://developer.adobe.com/document-services/docs/overview/pdf-embed-api/howtos_ui/), I don't believe so, but you should check the doc there to be sure.
Copy link to clipboard
Copied
@Raymond Camden I checked and tried this code but it doesn't work
const customFlags = {
showToolbar: true,
showCommentsPanel: false,
showToolsOnTextSelection: false,
downloadWithAnnotations: false,
printWithAnnotations: false
}
Copy link to clipboard
Copied
In the second argument to previewFile, which you have empty, add:
enableAnnotationAPIs: true
You can see this here, https://codepen.io/cfjedimaster/pen/NWJzgva?editors=1011
Copy link to clipboard
Copied
@Raymond Camden
now it works fine thank you, but still I got the comments on the left side as the attached image. Is there a way to remove it also?
Copy link to clipboard
Copied
I don't believe so. It looks you either enable or disable annotations as a whole, you can't do just comments.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more