# Generate screenshot of a dashboard chart for a PDF

**URL:** <https://discourse.nodered.org/t/generate-screenshot-of-a-dashboard-chart-for-a-pdf/85466>\
**Category:** General\
**Tags:** node-red-dashboard, chart, function-node, pdf\
**Created:** [12 February 2024 20:29 UTC](https://discourse.nodered.org/t/generate-screenshot-of-a-dashboard-chart-for-a-pdf/85466 "2024-02-12T20:29:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [12 February 2024 20:41 UTC](https://discourse.nodered.org/t/generate-screenshot-of-a-dashboard-chart-for-a-pdf/85466/2 "2024-02-12T20:41:55Z")

</div>

Did you try a forum search,? There was a question like this asked in the past few days.

> [@Taking screenshots - Final?](https://discourse.nodered.org/t/taking-screenshots-final/85209/11):
>
> Also, never use sudo when installing nodes locally.

> [@Display a chart in PDF](https://discourse.nodered.org/t/display-a-chart-in-pdf/20040):
>
> Hello! I have a problem with adding a chart to PDF. I want to put a chart in my Raport in PDF for a client but I haven't had any achievements in this field for several days. This is the last thing I need to do. I'm using HTML-PDF as described in [Make a PDF file](https://discourse.nodered.org/t/make-a-pdf-file/2810/6). Is there any way to achieve it? The tables and other data is adding correctly, but I don't know how to add a chart. I didn't find nothing that works in Google or this forum confused This is my flow: [{"id":"c…

> [@Screenshot of Dashboard headless mode](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738):
>
> Hi guy, I am trying to take a screenshot in headless mode of the dashboard but till now I had no success. I can take screenshots of webpages without any problems. but when it comes to taking a screenshot of the dashboard or the node-red program environment I get a white or gray image. Till now I tried firefox and cutycapt. In the exec node command line: firefox -screenshot pic.png [http://192.168.1.1:1880/ui](http://192.168.1.1:1880/ui) or xvfb-run --server-args="-screen 0, 1024x768x24" ./CutyCapt --url=http://192.168…

---

_[View the full topic](https://discourse.nodered.org/t/generate-screenshot-of-a-dashboard-chart-for-a-pdf/85466)._
