Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I was looking at generating a PDF of my D3 visual. Specifically converting my SVG element to a PDF: Power BI custom visual file download API - Power BI | Microsoft Learn.
I have tried using verious libaries including jsPDF, html2canvas, canvg, and pdf-lib.
I managed to generate a PDF using pdf-lib however it was very distorted and rendered the elements in the wrong places.
Does anyone know of a good example on GitHub of using the download API with PDFs? Or can recomened an approche they know is compatable with Custom Visuals?
Hi @IraJWatt
I have the similar case , i wanted to download my custom visual using download api which is provided by microsoft but it is not working.Can you share the examples if you able to download it to pdf.