# Taking a screen shot of the page using a button

**URL:** <https://community.appfarm.io/t/taking-a-screen-shot-of-the-page-using-a-button/864>\
**Category:** Ask the community\
**Created:** [November 22, 2023, 11:25am UTC](https://community.appfarm.io/t/taking-a-screen-shot-of-the-page-using-a-button/864 "2023-11-22T11:25:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![habibftw](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/habibftw/32/1593_2.png) [@habibftw](https://community.appfarm.io/u/habibftw)\
**Post date:** [November 22, 2023, 11:25am UTC](https://community.appfarm.io/t/taking-a-screen-shot-of-the-page-using-a-button/864/1 "2023-11-22T11:25:18Z")

</div>

Hey guys, we have a requirement from the clients that they want to be able to take a screenshot of the page using a button, save it in a file data source, and later use it when needed. Is it possible to do it?

---

<div class="post-metadata">

**Author:** ![isabelslorer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/isabelslorer/32/856_2.png) [@isabelslorer](https://community.appfarm.io/u/isabelslorer)\
**Post date:** [November 22, 2023, 3:02pm UTC](https://community.appfarm.io/t/taking-a-screen-shot-of-the-page-using-a-button/864/2 "2023-11-22T15:02:48Z")

</div>

Hi!

You can try to use the html2pdf library and put the whole page in a container with a custom Element ID.

This is documented here: [https://docs.appfarm.io/how-to/enhance-your-app/generate-pdf-from-container](https://docs.appfarm.io/how-to/enhance-your-app/generate-pdf-from-container)

Hope this helps!
