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 [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]