# How to load different pdf on pdfjs express viewer on passing url through button click

**URL:** <https://pdfjs.community/t/how-to-load-different-pdf-on-pdfjs-express-viewer-on-passing-url-through-button-click/320>\
**Category:** Technical Support\
**Created:** [October 7, 2020, 9:57am UTC](https://pdfjs.community/t/how-to-load-different-pdf-on-pdfjs-express-viewer-on-passing-url-through-button-click/320 "2020-10-07T09:57:48Z")\
**Posts on this page:** 1\
**Showing post:** 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:** [October 7, 2020, 9:57am UTC](https://pdfjs.community/t/how-to-load-different-pdf-on-pdfjs-express-viewer-on-passing-url-through-button-click/320/1 "2020-10-07T09:57:49Z")

</div>

**PDF.js Express Version**

**Detailed description of issue**  
How to load different pdf on pdfjs express viewer on passing S3 bucket url through button click.I want to change the pdf inside the viewer as i click on any file present on my screen.

**Expected behaviour**

 ![Screenshot from 2020-10-07 15-25-12](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/10a433fb2c17ff05898837465d38e797e4b8a3f5.jpeg)

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

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

---

_[View the full topic](https://pdfjs.community/t/how-to-load-different-pdf-on-pdfjs-express-viewer-on-passing-url-through-button-click/320)._
