cancel
Showing results for 
Search instead for 
Did you mean: 

Custom PDF Export Script - Fit to 1 Page

cartercjb
9 - Travel Pro
9 - Travel Pro

Does anyone have suggestions on how to force all widgets to fit on 1 page when exporting to PDF? Is anyone aware of a custom script that would do this?  

Here is a screenshot of the dashboard when viewed from the web app

2021-12-15_11-50-31.png

Here is a screenshot showing the PDF export on two pages instead of 1

2021-12-15_11-51-39.png

 

 

2 REPLIES 2

javierecfpn
9 - Travel Pro
9 - Travel Pro

I don't know if it is possible with a custom script but you can play a little bit with the size of the paper to see if it fits more widgets, for instance we use Legal (216mm x 356mm) and Landscape orientation and it mostly works for most dashboards, if you really need to fit everything inside a portrait letter size page I would recommend doing a script that exports PNG files from every widget using the API and then fits them into a single PDF page as best as possible using your own criteria.

HamzaJ
9 - Travel Pro
9 - Travel Pro

Hi @cartercjb ,

There is not a default option to enforce it on every dashboard by default. However you can do this per PDF/dashboard. Select Edit Mode in the left corner. The widget borders will get thicker and makes it possible to decrease/increase the size of them. Depending on the amount of widgets and their position, you can decrease the height so they all fit on 1 page.

This is done separately from your dashboard layout. That will remain the same.

Hamza