0

I want to convert a HTML report to PDF with CSS. I have look through the google and I found jsPDF. But the problem with jsPDF is that it does not supprt CSS. To make the CSS work I have used html2canvas. But it does not work properly.

Can anyone suggest me a better solution?

1 Answer 1

0

If it's for your own use, install a pdf printer driver on your computer (there are loads of them if you google, but you probably already have one installed anyway) then just print the report to pdf.

3
  • Actually I was looking for a script.
    – naqib83
    Commented Jul 12, 2016 at 15:37
  • easy: window.print();
    – grateful
    Commented Jul 12, 2016 at 19:55
  • It does not serve the purpose. I want to show the report in a pdf in browser.
    – naqib83
    Commented Jul 12, 2016 at 20:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.