# How to hide and unhide thumbnail pages on button click?

**URL:** https://pdfjs.community/t/how-to-hide-and-unhide-thumbnail-pages-on-button-click/1197
**Category:** Technical Support
**Created:** [November 26, 2021, 1:35pm UTC](https://pdfjs.community/t/how-to-hide-and-unhide-thumbnail-pages-on-button-click/1197 "2021-11-26T13:35:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![himani.sharma](https://avatars.discourse-cdn.com/v4/letter/h/e47774/32.png) [@himani.sharma](https://pdfjs.community/u/himani.sharma)
#### Post date: [November 26, 2021, 1:35pm UTC](https://pdfjs.community/t/how-to-hide-and-unhide-thumbnail-pages-on-button-click/1197/1 "2021-11-26T13:35:12Z")

</div>

**Which product are you using?**  
PDF.js Express Viewer

**PDF.js Express Version**  
8.1.0

**Detailed description of issue**  
Hi there,

Do we have a functionality in pdfjs express through which we can hide or unhide the thumbnail page. When we click on an icon beside the thumbnail page , the thumbnail page should have an overlay effect indicating that the page has been hidden and vice versa.

Pls let me know if there is any pre existing way in pdfjs express for achieving this.

Thanks!

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/9bfd7ba842d8a7993ba64e523ed6c0b256cfcc19.png)

**Expected behaviour**  
I have attached an image for the required behaviour.

**Does your issue happen with every document, or just one?**  
{Answer here}

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

**Code snippet**  
{Provide a relevant code snippet}

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)
#### Post date: [November 26, 2021, 1:35pm UTC](https://pdfjs.community/t/how-to-hide-and-unhide-thumbnail-pages-on-button-click/1197/3 "2021-11-26T13:35:16Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

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

Guides:
- [Set up measurement tools](https://pdfjs.express/documentation/measurement/setup)
- [Best practices for PDF.js Express - Preload the Web Viewer](https://pdfjs.express/documentation/learn-more/best-practices#preload-the-web-viewer)
- [PDF.js Express Viewer Overview - Select an integration or framework to get started - Frameworks](https://pdfjs.express/documentation/get-started-viewer#frameworks)

APIs:
- [PDF.js Express Utilities](https://pdfjs.express/api/utils/index.html#__anchor)
- [ExpressUtils(optionsopt) - # async set() → {Promise.}](https://pdfjs.express/api/utils/ExpressUtils.html#set__anchor)
- [Core.Tools.Tool - new Tool(docViewer)](https://pdfjs.express/api/Core.Tools.Tool.html#Tool__anchor)

Forums:
- [How can we create our custom thumbnail panel beside our viewer?](https://pdfjs.community/t/how-can-we-create-our-custom-thumbnail-panel-beside-our-viewer/811/3)
- [How can we integrate a side layout of all pdf pages on outside of the viewer](https://pdfjs.community/t/how-can-we-integrate-a-side-layout-of-all-pdf-pages-on-outside-of-the-viewer/299/2)
- [How to show only one page at a time in viewer](https://pdfjs.community/t/how-to-show-only-one-page-at-a-time-in-viewer/940/6)

---

<div class="post-metadata">

### Author: ![himani.sharma](https://avatars.discourse-cdn.com/v4/letter/h/e47774/32.png) [@himani.sharma](https://pdfjs.community/u/himani.sharma)
#### Post date: [November 30, 2021, 9:51am UTC](https://pdfjs.community/t/how-to-hide-and-unhide-thumbnail-pages-on-button-click/1197/4 "2021-11-30T09:51:21Z")

</div>

Hey there!

Any insights on the above issue would be of great help!

Thanks

---

<div class="post-metadata">

### Author: ![driley](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@driley](https://pdfjs.community/u/driley)
#### Post date: [December 1, 2021, 9:34pm UTC](https://pdfjs.community/t/how-to-hide-and-unhide-thumbnail-pages-on-button-click/1197/5 "2021-12-01T21:34:53Z")

</div>

Hi Himani,

Unfortunately, there are no thumbnail APIs to create overlays and add that functionality. You will need to follow the steps of this post here: [How can we create our custom thumbnail panel beside our viewer? - #3 by Logan](https://pdfjs.community/t/how-can-we-create-our-custom-thumbnail-panel-beside-our-viewer/811/3)

Cheers,  
Dustin
