React download current page as pdf






















Learn more. How to save pdf in react created using react-pdf library? Ask Question. Asked 1 year, 1 month ago. Active 1 year, 1 month ago. Viewed 2k times. Ashish Mysterio Ashish Mysterio 1 1 silver badge 12 12 bronze badges.

Add a comment. Active Oldest Votes. Mohammad Faisal Mohammad Faisal 1, 1 1 gold badge 8 8 silver badges 13 13 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Improve Article. Like Article. Last Updated : 13 Aug, Previous How to add Statefull component without constructor class in React? Recommended Articles. Article Contributed By :. Easy Normal Medium Hard Expert.

Writing code in comment? Please use ide. Load Comments. What's New. Viewed 24k times. I think the example you have in your question is for server side rendering a PDF with Node. I think it does not have api to download your pdf. Is your pdf from server or local. If it is local you can download it by import pdf from '.. My pdf would be just a rendered component in UI.

How do I make this work? Can I save it on the client side or it has to be a server and then the client can download it? Add a comment. Active Oldest Votes. When using the above answer, just remember to include View and Text inside the Document component. See here for more info: github. Pankaj Upadhyay Pankaj Upadhyay 2, 17 17 silver badges 22 22 bronze badges. Sign up or log in Sign up using Google.



0コメント