---
title: "How to generate a screenshot from a dashboard?"
canonical: "https://onesaitplatform.refined.site/space/DOCT/2220791925/How%20to%20generate%20a%20screenshot%20from%20a%20dashboard%3F"
format: markdown
---
EN | [ES](https://onesaitplatform.atlassian.net/wiki/spaces/DOC/pages/2215913311)

From **1.4.0-commando** version of the onesaitplatform, you can generate a dashboard screenshot, in png image format and in pdf document format, using a REST API enabled for that purpose.

![image](media://d407a754-7e12-482e-b1d0-25ab2bcc996e)



![image](media://ecf7fffa-3695-4d4e-b9b4-c34b522b957b)


![image](media://1035aac9-b1a8-4d43-a773-a71bc4da87e2)

As you can see, there are two endpoints with this functionality:

- generateDashboardImage --> Allows for the REST generation of the dashboard as a png image. The parameters are as follows:
  - **<span style="color: #3b4151">Dashboard ID</span>**<span style="color: #3b4151"> </span><span style="color: #3b4151">→</span><span style="color: #3b4151"> dashboard's id, can be obtained from the dashboard's URL itself:</span>

![image](media://71695949-e99a-493b-ac80-9aa23a7a3165)

> Macro (legacy-content)

![image](media://011f272c-1d73-4c04-a286-51fe5aff7f7e)

> Macro (legacy-content)

- **generatePDFImage** → Allows the generation of a Vector PDF document on the dashboard. The vector support of it, will depend on the libraries used in the dashboard: For example, a canvas library (chartjs, echarts with render canvas, ...) will never be vector; however an SVG library will be (echarts with render svg, D3, ...). The parameters are analogous to the image, except for the fullscreen, that does not apply in this case.

Finally, by invoking from Swagger or from a REST client, we can get the rendered image:

![image](media://3987c3ca-dd56-4770-81aa-5ab37aff3ff5)


![image](media://04d966dd-73e0-422e-ba72-a44f57fb3be3)