dosubot[bot] commented on issue #33730: URL: https://github.com/apache/superset/issues/33730#issuecomment-2957334497
<!-- Answer --> The "Download as Image" and "Download as PDF" features in Superset dashboards rely on frontend components that capture screenshots or generate PDFs of the dashboard. If these options aren't working, it's often due to issues in the screenshot generation process or missing backend support. The code includes error handling and will show a toast message if something goes wrong during the download attempt ([source](https://github.com/apache/superset/blob/bb6bd85c1d66a3a4c2fb8827ad95477e7c5de9f5/superset-frontend/src/dashboard/components/menu/DownloadMenuItems/DownloadAsImage.tsx), [source](https://github.com/apache/superset/blob/bb6bd85c1d66a3a4c2fb8827ad95477e7c5de9f5/superset-frontend/src/dashboard/components/menu/DownloadMenuItems/DownloadAsPdf.tsx), [source](https://github.com/apache/superset/blob/bb6bd85c1d66a3a4c2fb8827ad95477e7c5de9f5/superset-frontend/src/dashboard/components/menu/DownloadMenuItems/DownloadScreenshot.tsx)). If you want to hide these options as a workaround, you can use custom CSS. Inspect the dashboard menu using your browser's developer tools to find the CSS selectors for the "Download as Image" and "Download as PDF" menu items. Then, create a custom CSS template in Superset with something like: ```css /* Replace these selectors with the actual ones from your dashboard */ .ant-dropdown-menu-item[title="Download as Image"], .ant-dropdown-menu-item[title="Download as PDF"] { display: none !important; } ``` You can apply this CSS globally by editing the `GlobalStyles` component in `superset-frontend/src/GlobalStyles.tsx` ([reference](https://github.com/apache/superset/discussions/33295)). This will hide the menu items for all users. If you need more help finding the exact selectors, let me know! <!-- 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/ff81d076-0a62-4f64-b53f-f35dadbf3458?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/ff81d076-0a62-4f64-b53f-f35dadbf3458?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/ff81d076-0a62-4f64-b53f-f35dadbf3458?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/ff81d076-0a62-4f64-b53f-f35dadbf3458?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/ff81d076-0a62-4f64-b53f-f35dadbf3458?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/ff81d076-0a62-4f64-b53f-f35dadbf3458?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/ff81d076-0a62-4f64-b53f-f35dadbf3458?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [! [Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/33730) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
