MatthewHerbst / react-to-print

Print React components in the browser. Supports Chrome, Safari, Firefox and EDGE
MIT License
2.14k stars 221 forks source link

direclty printing instead of downloading #670

Closed mosesnagar closed 11 months ago

mosesnagar commented 11 months ago

hi, currently we're using this library to print a PDF. is there a way to skip the printing phase and just downloading it?

thanks

MatthewHerbst commented 11 months ago

Hello. As mentioned on our README, react-to-print is not capable of generating PDFs, all we do is open the content for printing in the browser, and the browser offers you the option to print a PDF. If you visit the link in the README there is a thread with some example of how to mix react-to-print with other libraries to do this. Please let us know if you run into any issues.