You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/02 03:13:24 UTC
Re: [D] Page breaks in exporting dashboards to PDF [superset]
GitHub user dosubot[bot] edited a comment on the discussion: Page breaks in exporting dashboards to PDF
<!-- Greeting -->
Hi @Pawel-Serkowski! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
<!-- Answer -->
Explicit page breaks for one chart per PDF page are **not currently supported** in Superset's dashboard PDF export. The fundamental limitation is that dashboard exports use screenshot-based rendering (via [Playwright/Selenium](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/utils/webdriver.py) → [PIL image-to-PDF conversion](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/utils/pdf.py#L30-L49)), which doesn't support CSS page-break controls.
**Closest workaround:** Use the **alerts/reports system with multi-tab dashboards**. If you enable the `ALERT_REPORT_TABS` feature flag and [create one dashboard tab per chart](https://github.com/apache/superset/pull/30694), each tab exports to a separate PDF page. This requires using scheduled reports rather than the direct "Dashboard > Download > Export PDF" option.
**In development:** [PR #35014](https://github.com/apache/superset/pull/35014) introduces intelligent pagination with CSS `page-break-inside: avoid` and `@page` directives using WeasyPrint, but it's limited to **table-based charts** in reports only—not general dashboard exports with line charts, bar charts, etc.
To get true per-chart page breaks for arbitrary visualizations, this would require architectural changes to switch dashboard exports from screenshot-based to HTML-to-PDF conversion (similar to what the alerts/reports system already uses). That would indeed require custom backend/renderer modifications.
<!-- 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).*
---
Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-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=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=a7a95bb4-f597-4193-82ed-62785e21d6a9) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-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=static-docs-share-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/38337#discussioncomment-15969309
----
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