You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "SupersetOdT (via GitHub)" <gi...@apache.org> on 2026/01/07 11:53:22 UTC
[D] [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...) [superset]
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 notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] [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...) [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] edited a comment on the 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...)
<!-- Answer -->
That's a great idea—superset/config.py currently has only minimal comments for WEBDRIVER_WINDOW and related export settings, and it doesn't clarify that only pixel_density affects dashboard PDF export width, while the dashboard/slice window sizes have no effect on PDFs. Adding comments to explain these limitations (for example: which settings impact PNG vs. PDF exports, the fixed 1600px base width for PDFs, and the role of pixel_density) would help users avoid confusion and better understand how to tune export quality and resource usage. Community discussions show that many users run into these issues, so improving the comments would be valuable for clarity and troubleshooting [example](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/config.py#L1524-L1546) [discussion](https://github.com/apache/superset/discussions/35327).
If you decide to add comments, it's helpful to be explicit about which settings affect which export types, and to note the current limitations (like lack of ISO page sizing or DPI control for dashboard PDFs). This matches common open source best practices for config files.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=7f7e7ef2-269e-4acf-87cf-18f5f21d7c3e) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/36949#discussioncomment-15434805
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] [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...) [superset]
Posted by "SupersetOdT (via GitHub)" <gi...@apache.org>.
GitHub user SupersetOdT added a comment to the 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...)
OK, thank you.
I regularly follow the PRs.
Just in case, I annotated my config file as follows:
[WEBDRIVER_WINDOW.txt](https://github.com/user-attachments/files/24473349/WEBDRIVER_WINDOW.txt)
Perhaps at first it would be interesting to comment as well [le fichier de config](https://github.com/apache/superset/blob/master/superset/config.py) ?
GitHub link: https://github.com/apache/superset/discussions/36949#discussioncomment-15434775
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] [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...) [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the 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...)
<!-- Answer -->
You're correct—when exporting dashboards to PDF via Dashboard > Download > Export PDF in Superset 6.0.0, the width is always 1600 pixels times the pixel_density, and the dashboard/slice size settings in WEBDRIVER_WINDOW have no effect. There is currently no built-in way to select ISO page sizes (like A4 or A3), set DPI, or split a dashboard export into multiple PDF pages. The export process uses a fixed-width screenshot at 72 dpi, so the resulting PDF width doesn't match standard paper sizes, and only pixel_density affects the output resolution [[source](https://github.com/apache/superset/issues/36794)].
The enhancements you referenced (like ISO page sizing, multi-page PDFs, and DPI selection via WeasyPrint) are only available for alerts/reports, not for dashboard exports [[source](https://github.com/apache/superset/pull/35014)]. Dashboard exports still rely on screenshot stitching, and the only way to marginally improve quality is by increasing pixel_density or tweaking WebDriver arguments (e.g., `--force-device-scale-factor`), but this just scales the fixed width, not the page format [[source](https://github.com/apache/superset/discussions/32149#discussioncomment-13130870)].
There are no direct configuration options or workarounds for exporting dashboards as ISO-sized, multi-page PDFs with configurable DPI. Some users have used Playwright scripting for custom report generation, but this is not a built-in feature [[source](https://github.com/apache/superset/issues/36794#issuecomment-3681995081)].
If you want to track or contribute to future enhancements, you might want to follow discussions and PRs related to dashboard export improvements. For now, the limitations you described are expected behavior.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/be4a79a7-68f5-4103-b32f-508d4f9ea6b6?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/be4a79a7-68f5-4103-b32f-508d4f9ea6b6?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/be4a79a7-68f5-4103-b32f-508d4f9ea6b6?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/be4a79a7-68f5-4103-b32f-508d4f9ea6b6?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/be4a79a7-68f5-4103-b32f-508d4f9ea6b6?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/be4a79a7-68f5-4103-b32f-508d4f9ea6b6?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/be4a79a7-68f5-4103-b32f-508d4f9ea6b6?feedback_type=other)</sup>
[](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=You%27re%20correct%E2%80%94when%20exporting%20dashboards%20to%20PDF%20via%20Dashboard%20%3E%20Download%20%3E%20Export%20PDF%20in%20Superset%206.0.0%2C%20the%20width%20is%20always%201600%20pixels%20times%20the%20pixel_density%2C%20and%20the%20dashboard/slice%20size%20settings%20in%20WEBDRIVER_WINDOW%20have%20no%20effect.%20There%20is%20currently%20no%20built-in%20way%20to%20select%20ISO%20page%20sizes%20%28like%20A4%20or%20A3%29%2C%20set%20DPI%2C%20or%20split%20a%20dashboard%20export%20into%20multiple%20PDF%20pages.%20The%20export%20process%20uses%20a%20fixed-width%20screenshot%20at%2072%20dpi%2C%20so%20the%20resulting%20PDF%20width%20doesn%27t%20match%20standard%20paper%20sizes%2C%20and%20only%20pixel_density%20affects%20the%20output%20resolution%20%5
B%5Bsource%5D%28https%3A//github.com/apache/superset/issues/36794%29%5D.%0A%0AThe%20enhancements%20you%20referenced%20%28like%20ISO%20page%20sizing%2C%20multi-page%20PDFs%2C%20and%20DPI%20selection%20via%20WeasyPrint%29%20are%20only%20available%20for%20alerts/reports%2C%20not%20for%20dashboard%20exports%20%5B%5Bsource%5D%28https%3A//github.com/apache/superset/pull/35014%29%5D.%20Dashboard%20exports%20still%20rely%20on%20screenshot%20stitching%2C%20and%20the%20only%20way%20to%20marginally%20improve%20quality%20is%20by%20increasing%20pixel_density%20or%20tweaking%20WebDriver%20arguments%20%28e.g.%2C%20%60--force-device-scale-factor%60%29%2C%20but%20this%20just%20scales%20the%20fixed%20width%2C%20not%20the%20page%20format%20%5B%5Bsource%5D%28https%3A//github.com/apache/superset/discussions/32149%23discussioncomment-13130870%29%5D.%0A%0AThere%20are%20no%20direct%20configuration%20options%20or%20workarounds%20for%20exporting%20dashboards%20as%20ISO-sized%2C%20multi-page%20PDFs%20with%20c
onfigurable%20DPI.%20Some%20users%20have%20used%20Playwright%20scripting%20for%20custom%20report%20generation%2C%20but%20this%20is%20not%20a%20built-in%20feature%20%5B%5Bsource%5D%28https%3A//github.com/apache/superset/issues/36794%23issuecomment-3681995081%29%5D.%0A%0AIf%20you%20want%20to%20track%20or%20contribute%20to%20future%20enhancements%2C%20you%20might%20want%20to%20follow%20discussions%20and%20PRs%20related%20to%20dashboard%20export%20improvements.%20For%20now%2C%20the%20limitations%20you%20described%20are%20expected%20behavior.) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/36949)
GitHub link: https://github.com/apache/superset/discussions/36949#discussioncomment-15433764
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] [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...) [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the 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...)
<!-- Answer -->
That's a great idea—superset/config.py currently has only minimal comments for WEBDRIVER_WINDOW and related export settings, and it doesn't clarify that only pixel_density affects dashboard PDF export width, while the dashboard/slice window sizes have no effect on PDFs. Adding comments to explain these limitations (for example: which settings impact PNG vs. PDF exports, the fixed 1600px base width for PDFs, and the role of pixel_density) would help users avoid confusion and better understand how to tune export quality and resource usage. Community discussions show that many users run into these issues, so improving the comments would be valuable for clarity and troubleshooting [example](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/config.py#L1524-L1546) [discussion](https://github.com/apache/superset/discussions/35327).
If you decide to add comments, it's helpful to be explicit about which settings affect which export types, and to note the current limitations (like lack of ISO page sizing or DPI control for dashboard PDFs). This matches common open source best practices for config files.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/7f7e7ef2-269e-4acf-87cf-18f5f21d7c3e?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/7f7e7ef2-269e-4acf-87cf-18f5f21d7c3e?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/7f7e7ef2-269e-4acf-87cf-18f5f21d7c3e?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/7f7e7ef2-269e-4acf-87cf-18f5f21d7c3e?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/7f7e7ef2-269e-4acf-87cf-18f5f21d7c3e?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/7f7e7ef2-269e-4acf-87cf-18f5f21d7c3e?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/7f7e7ef2-269e-4acf-87cf-18f5f21d7c3e?feedback_type=other)</sup>
[](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=That%27s%20a%20great%20idea%E2%80%94superset/config.py%20currently%20has%20only%20minimal%20comments%20for%20WEBDRIVER_WINDOW%20and%20related%20export%20settings%2C%20and%20it%20doesn%27t%20clarify%20that%20only%20pixel_density%20affects%20dashboard%20PDF%20export%20width%2C%20while%20the%20dashboard/slice%20window%20sizes%20have%20no%20effect%20on%20PDFs.%20Adding%20comments%20to%20explain%20these%20limitations%20%28for%20example%3A%20which%20settings%20impact%20PNG%20vs.%20PDF%20exports%2C%20the%20fixed%201600px%20base%20width%20for%20PDFs%2C%20and%20the%20role%20of%20pixel_density%29%20would%20help%20users%20avoid%20confusion%20and%20better%20understand%20how%20to%20tune%20export%20quality%20and%20resource%20usage.%20Community%20discussions%20show%
20that%20many%20users%20run%20into%20these%20issues%2C%20so%20improving%20the%20comments%20would%20be%20valuable%20for%20clarity%20and%20troubleshooting%20%5Bexample%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/config.py%23L1524-L1546%29%20%5Bdiscussion%5D%28https%3A//github.com/apache/superset/discussions/35327%29.%20%0A%0AIf%20you%20decide%20to%20add%20comments%2C%20it%27s%20helpful%20to%20be%20explicit%20about%20which%20settings%20affect%20which%20export%20types%2C%20and%20to%20note%20the%20current%20limitations%20%28like%20lack%20of%20ISO%20page%20sizing%20or%20DPI%20control%20for%20dashboard%20PDFs%29.%20This%20matches%20common%20open%20source%20best%20practices%20for%20config%20files.) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu
_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/36949)
GitHub link: https://github.com/apache/superset/discussions/36949#discussioncomment-15434805
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] [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...) [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] edited a comment on the 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...)
<!-- Answer -->
You're correct—when exporting dashboards to PDF via Dashboard > Download > Export PDF in Superset 6.0.0, the width is always 1600 pixels times the pixel_density, and the dashboard/slice size settings in WEBDRIVER_WINDOW have no effect. There is currently no built-in way to select ISO page sizes (like A4 or A3), set DPI, or split a dashboard export into multiple PDF pages. The export process uses a fixed-width screenshot at 72 dpi, so the resulting PDF width doesn't match standard paper sizes, and only pixel_density affects the output resolution [[source](https://github.com/apache/superset/issues/36794)].
The enhancements you referenced (like ISO page sizing, multi-page PDFs, and DPI selection via WeasyPrint) are only available for alerts/reports, not for dashboard exports [[source](https://github.com/apache/superset/pull/35014)]. Dashboard exports still rely on screenshot stitching, and the only way to marginally improve quality is by increasing pixel_density or tweaking WebDriver arguments (e.g., `--force-device-scale-factor`), but this just scales the fixed width, not the page format [[source](https://github.com/apache/superset/discussions/32149#discussioncomment-13130870)].
There are no direct configuration options or workarounds for exporting dashboards as ISO-sized, multi-page PDFs with configurable DPI. Some users have used Playwright scripting for custom report generation, but this is not a built-in feature [[source](https://github.com/apache/superset/issues/36794#issuecomment-3681995081)].
If you want to track or contribute to future enhancements, you might want to follow discussions and PRs related to dashboard export improvements. For now, the limitations you described are expected behavior.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=be4a79a7-68f5-4103-b32f-508d4f9ea6b6) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/36949#discussioncomment-15433764
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org