Export Dashboard to PDF

Good afternoon to everyone,
I want to know if there is a way to export a dashboard with charts to a PDF file (i know you can do it individually for each chart, but i want the all the dashboard compoonents to be export)

as a side note, when using exportDisplay with extension PDF, and tries to open it, it shows an error and the document can’t be open. Any reason for it?

You may try to call JS window.print(); to print the entire web page using JavaScript:

JavaScript js = Page.getCurrent().getJavaScript();
js.execute("window.print();");

HI, i only wants to export the charts as a group not all the screen (i dont want to show the menu)

Menu can be hidden from printing with CSS media selector:

@media print {
   .noprint { // write selector for your menu block here
       display:none;
   }
}