Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
IraJWatt
Regular Visitor

Recommended approached to generating a PDF of a Custom Visual

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?

 

1 REPLY 1
priyanka1985_
New Member

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.

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors