Bug description
For reports and alerts, no field offers to set the width of the PDF.
=============================================================
Very strangely, the value of the width of the PDF can be fixed if it is previously written in "Edit Report" > "Content format" > "Send as PNG" > "Screenshot width"... , then by changing "Content format" to "Send as PDF" 🤔
=============================================================
In the screenshot example above, my PDF is indeed output at a width of 2200 pxl (= 776 mm *72 dpi / 25,4 mm/inch).
(Indeed, I noticed that for a configuration set in "custom_superset_config.py" with "WEBDRIVER_WINDOW = {"pixel_density": 1,}" (which is the case in this example), all the screenshots are done at 72 dpi.)
=============================================================
Moreover, given that the width of the reports must be located between 1200 and 2400 pxl * {"pixel_density": X,} and given the 72 dpi or more of the screenshots, it should be noted that in the current state, it is impossible to generate a PDF with a width corresponding to the ISO A4, A3 or A2 format. (420 mm = 1191 pxl). Only the widths of ISO A1 (594 mm = 1684 pxl) or even larger PDF formats... are possible.
The solution would be to add a field "Edit Report" > "Content format" > "Send as PDF" > "Width in mm", where we could add the width of an ISO format with a resolution higher than 72 dpi (insufficient quality for A4 -> 200 or 300 dpi would be ideal in this case).
Screenshots/recordings
No response
Superset version
6.0.0
Python version
3.11
Node version
18 or greater
Browser
Chrome
Additional context
No response
Checklist
Bug description
For reports and alerts, no field offers to set the width of the PDF.
=============================================================
Very strangely, the value of the width of the PDF can be fixed if it is previously written in "Edit Report" > "Content format" > "Send as PNG" > "Screenshot width"... , then by changing "Content format" to "Send as PDF" 🤔
=============================================================
In the screenshot example above, my PDF is indeed output at a width of 2200 pxl (= 776 mm *72 dpi / 25,4 mm/inch).
(Indeed, I noticed that for a configuration set in "custom_superset_config.py" with "WEBDRIVER_WINDOW = {"pixel_density": 1,}" (which is the case in this example), all the screenshots are done at 72 dpi.)
=============================================================
Moreover, given that the width of the reports must be located between 1200 and 2400 pxl * {"pixel_density": X,} and given the 72 dpi or more of the screenshots, it should be noted that in the current state, it is impossible to generate a PDF with a width corresponding to the ISO A4, A3 or A2 format. (420 mm = 1191 pxl). Only the widths of ISO A1 (594 mm = 1684 pxl) or even larger PDF formats... are possible.
The solution would be to add a field "Edit Report" > "Content format" > "Send as PDF" > "Width in mm", where we could add the width of an ISO format with a resolution higher than 72 dpi (insufficient quality for A4 -> 200 or 300 dpi would be ideal in this case).
Screenshots/recordings
No response
Superset version
6.0.0
Python version
3.11
Node version
18 or greater
Browser
Chrome
Additional context
No response
Checklist