Dashboard Printing or Printing to PDF
From opCharts version 4.9.1, dashboards can be printed or generated as a PDF document.
Generating a PDF document of a dashboard utilises the normal browser print dialog, and the common browser / OS print-to-pdf feature.
This can be achieved by viewing a dashboard and clicking the “Print Dashboard” button at the top of the page:
This navigates to a new page where the dashboard will be prepared for printing. Before the print dialog is triggered, this process:
Modifies the layout of the dashboard so that each component will be full-width. This is to ensure that the components can maximise the smaller (compared to most browser windows) horizontal space of a printed page. Components are ordered top-down as they otherwise would be in the normal grid layout. This also ensures that pages breaks do not occur in the middle of a component.
Ensures that chart component data has been collected and rendered before printing.
Includes a header containing the dashboard title, description, and filter period and range.
Note: Printing a dashboard when the browser or OS is set to “dark mode” display may cause some components to have a dark background regardless of “background” related print settings.
Note: Component height when printing is set to the defined height in the normal grid layout. If tabular data overflows the component container then the height of the component can be manually adjusted by editing the dashboard.
Node: Dashboard printing is optimised for A4 portrait.