GitHub user SupersetOdT created a discussion: [6.0.0] The width of PDFs
generated via "Dashboard">"Download">"Export PDF" is set to 1600 pxl or a
multiple if "WEBDRIVER_WINDOW = {"pixel_density": [>1],} and are not ISO
formats (A4, A3...)
Hello,
When exporting the dashboard to PDF directly from the "Dashboard" menu (and not
via the "Alert" or "Report" menus), the width of the dashboard always equals
1600 pxl * "pixel_density".
(The variables "WEBDRIVER_WINDOW = {"dashboard": (xxx, xxx), "slice": (xxx,
xxx),} have no effect).
Indeed, only the variable "WEBDRIVER_WINDOW = {"pixel_density": xxx,} works in
the PDF export.
Therefore, all the screenshots being taken at 72 dpi, the width dimension of
the PDF is either:
- 1600 pxl * 1 pxl_density * 25.4 mm per inch / 72 dpi = 564.4 mm,
- 1600 pxl * 2 pxl_density * 25.4 mm per inch / 72 dpi = 1128.9 mm,
- 1600 pxl * 3 pxl_density * 25.4 mm per inch / 72 dpi = 1693.3 mm,
- 1600 pxl * 4 pxl_density * 25.4 mm per inch / 72 dpi = 2257.8 mm...
- ...
These widths do not correspond to any ISO format.
As indicated in my message #36948, it would be interesting to have a PDF export
configuration window in which we could set the width of the sheet (by choosing
an ISO format for example) and the quality (200 or 300 dpi for A4).
The ideal would also be to be able to vertically cut the PDF to arrange it on
several pages if it is stretched too much vertically [(as in this
PR)](https://github.com/apache/superset/pull/35014)
GitHub link: https://github.com/apache/superset/discussions/36949
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]