Enable only searchButton in header section

Which product are you using?
PDF.js Express Plus

PDF.js Express Version

Detailed description of issue
I want to enable only searchButton in header section.

Expected behaviour
only searchButton enable for header section, currently it is showing comments and other menus also.

Does your issue happen with every document, or just one?
Every Document

Link to document
{Provide a link to the document in question if possible}

Code snippet
disabledElements: [

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:


Hello Abhiramsa3,

You can hide and show specific DOM elements, here is a guide on this: Hide & Disable Buttons in PDF.js Express Viewer | Documentation

Best regards,
Tyler Gordon
Web Development Support Engineer

i need to show only search button in header and hide all other buttons, like zoom, zoom(percentage), annotations, comments.
above document shared by you is not working

Hello Abhiramsa3,

What do you mean by “is not working”?

Best regards
Tyler Gordon
Web Development Support Engineer