I want to generate HTML of my View to generate PDF document. It has styles and scripts applied when it opens in browser. I tried the following code but it only gives the ht
If you want user to download the pdf of rendered page then the easiest solution to the problem is
window.print();
on client side it will prompt user to save pdf of current page. You can also customize the appearance of pdf by linking style
print.css is applied to the html while printing.
Limitation