Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
3

disable comments sidebar -PDF Embed API

Community Beginner ,
Jan 31, 2024 Jan 31, 2024

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?

TOPICS
How to , PDF Embed API , PDF Services API
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 01, 2024 Feb 01, 2024

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 03, 2024 Feb 03, 2024

@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
}

adobeDCView.previewFile({
metaData:{fileName: "Bodea Brochure.pdf"}
}, {
}).then(adobeViewer => {
   adobeViewer.getAnnotationManager().then(annotationManager => {
 
       annotationManager.setConfig({ showCommentsPanel: false}) .then(() => console.log("Success"))
           .catch(error => console.log(error));
   });
})
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 05, 2024 Feb 05, 2024
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 05, 2024 Feb 05, 2024

@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? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 05, 2024 Feb 05, 2024
LATEST

I don't believe so. It looks you either enable or disable annotations as a whole, you can't do just comments.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources