Per Plotly documentation, we can natively export a graph to several image format (png, svg, jpeg or webp). Other libraries, like React-pdf, allow to export a PDF file from a React component. I’d like to be able to let my users export a displayed Plotly graph in either image or PDF with a custom input.
Is there any clean solution to do this or should I play with the DOM to hide both libraries behind my custom input ?