Inserting plots into PDFs and downloading the same

Hello all.

Is it possible to generate plots in Plotly Dash and insert it into a PDF and finally as an outcome, download the PDF as well? The plots are generated using APIs and I want to simultaneously insert the plots and download it as a pdf.

Cannot post the code due to confidentiality reasons ;(

Download component as image using clientside_callback shows how to download the html on the page as an image using html2canvas, I believe the process is similar using html2pdf; however, I have not tested saving as pdf.