abowden-spotx commented on issue #4747: [WiP] Download Dashboards as PDF URL: https://github.com/apache/incubator-superset/pull/4747#issuecomment-382427457 Ultimately, the goal of this addition is so that we can integrate it with an emailing feature that will run independently on the server, which will allow us to send visualizations of the data to our ops teams. So far, I have looked into: - [pdfkit](https://pypi.org/project/pdfkit/) (Python wrapper for [wkhtmltopdf](https://wkhtmltopdf.org/)) - [jsPDF](https://github.com/MrRio/jsPDF) pdfkit seems to be the best option since it will allow us to download the dash directly from the server. The main hurdle to get over is appropriately passing the user session for authentication. Current process is as follows: - Render 'Download' button in the dashboard header (/javascripts/dashboard/components/Header.jsx) - OnClick make AJAX request (/javascripts/reduxUtils.js) - pass authentication/url/etc to server at specified route (/views/core.py) - call pdfkit.from_url() to generate PDF from provided arguments
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services