ASP.NET MVC: render view to generate PDF: use iTextSharp or better solution?

后端 未结 3 1325
野性不改
野性不改 2021-02-04 21:59

I display receipt in both HTML and printer-friendly version. HTML version does jQuery tabs, etc, while printer-friendly has zero scripts and external dependencies, no master lay

3条回答
  •  忘了有多久
    2021-02-04 22:12

    Finally used wkhtmltopdf which works fine when I set encoding, I found out how to setup page breaks, and it processes my CSS very nice. On issue is that it can't correctly process stdin/out in Windows version (don't remember if it's in or out that doesn't work) - may be fixed in recent versions, but I'm ok with temp files.

提交回复
热议问题