Export to PDF from embedded dashboard #29589
Replies: 1 comment 1 reply
-
Hello @marcinkozaczyk! I'm a bot designed to assist you with bugs, questions, and contributions. I'm here to help while you wait for a human maintainer. Yes, it is possible to export to PDF or Image from an embedded dashboard, similar to how it is done from the Dashboard view in the Superset application. The code includes methods for generating screenshots and PDFs from dashboards, which can be used for this purpose. For example, the def _get_screenshots(self) -> list[bytes]:
# ... (code to get screenshots)
return [image]
def _get_pdf(self) -> bytes:
screenshots = self._get_screenshots()
pdf = build_pdf_from_screenshots(screenshots)
return pdf These methods can be utilized to export the embedded dashboard to PDF or Image [1]. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to export to PDF / Image from embedded dashboard, as it is possible from Dahboard view in superset application?
Beta Was this translation helpful? Give feedback.
All reactions