GitHub user dosubot[bot] added a comment to the discussion: Export to pdf at dashboard level
<!-- Answer --> This is a known limitation in Superset 4.1.1: exporting dashboards with multiple or large tables to PDF using the built-in export can cause the browser to become unresponsive or hang. The export relies on the dom-to-pdf library with high-fidelity settings (like html2canvas scale: 2), which is very resource-intensive for complex dashboards and large tables. The most effective workaround is to limit the number of rows displayed in each table before exporting—smaller datasets are much less likely to trigger browser hangs or JavaScript errors during export. There isn’t a permanent fix for this in 4.1.1, and configuration options for PDF export are limited in this version. Improvements like configurable PDF compression and better handling of large exports are only available in newer releases. [Reference](https://github.com/apache/superset/discussions/32918) [Reference (code)](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/utils/downloadAsPdf.ts#L20-L72) <!-- 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/1df83384-73af-478e-b245-eaf4d3fedacc?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/1df83384-73af-478e-b245-eaf4d3fedacc?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/1df83384-73af-478e-b245-eaf4d3fedacc?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/1df83384-73af-478e-b245-eaf4d3fedacc?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/1df83384-73af-478e-b245-eaf4d3fedacc?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/1df83384-73af-478e-b245-eaf4d3fedacc?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/1df83384-73af-478e-b245-eaf4d3fedacc?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=This%20is%20a%20known%20limitation%20in%20Superset%204.1.1%3A%20exporting%20dashboards%20with%20multiple%20or%20large%20tables%20to%20PDF%20using%20the%20built-in%20export%20can%20cause%20the%20browser%20to%20become%20unresponsive%20or%20hang.%20The%20export%20relies%20on%20the%20dom-to-pdf%20library%20with%20high-fidelity%20settings%20%28like%20html2canvas%20scale%3A%202%29%2C%20which%20is%20very%20resource-intensive%20for%20complex%20dashboards%20and%20large%20tables.%20The%20most%20effective%20workaround%20is%20to%20limit%20the%20number%20of%20rows%20displayed%20in%20each%20table%20before%20exporting%E2%80%94smaller%20datasets%20are%20much%20less%20likely%20to%20trigger%20browser%20hangs%20or%20JavaScript%20errors%20during%20export.%20There%20isn%E 2%80%99t%20a%20permanent%20fix%20for%20this%20in%204.1.1%2C%20and%20configuration%20options%20for%20PDF%20export%20are%20limited%20in%20this%20version.%20Improvements%20like%20configurable%20PDF%20compression%20and%20better%20handling%20of%20large%20exports%20are%20only%20available%20in%20newer%20releases.%20%20%0A%5BReference%5D%28https%3A//github.com/apache/superset/discussions/32918%29%20%20%0A%5BReference%20%28code%29%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/utils/downloadAsPdf.ts%23L20-L72%29) [](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/36735) GitHub link: https://github.com/apache/superset/discussions/36735#discussioncomment-15289023 ---- 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]
