✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🧬 Learn how to build RNA-Seq data apps with Python & Dash. Register for the May 20 Webinar!

How does the Print PDF button works in vanguard report?

I am making a dashboard app and I want to add the Print PDF button just like https://vanguard-report.herokuapp.com/ report, can anyone please explain its working ?

If you look at the source code at

you will find links to various external resources including

https://codepen.io/bcd/pen/YaXojL.js
https://codepen.io/bcd/pen/KQrXdb.css

The JavaScript file calls window.print() when the button is clicked, and the css file sets up the print layout in @media print.

2 Likes

This example code is not available anymore :frowning:

1 Like