Hey,
I want to download the dashboard screen in the form of PDF and have to set the size and settings explicitly. I tried the code below:
public void download() {
JavaScript page = Page.getCurrent().getJavaScript();
page.execute(“window.print();”);
}
This helps me download only 1 page of the screen and I currently have 3 pages which I need in a single file.
How can I achieve this?