Ravi Ravi - 1 year ago 426
ASP.NET (C#) Question

Convert HTML to PDF in MVC with iTextSharp in MVC Razor

I want to convert HTML to PDF with

in MVC Razor. I have tried many ways but can't get proper way.

help me!!!

Thanks in Advance.

Answer Source

There's a detailed and step-by-step tutorial on CodeProject you might follow. It illustrates how you could serve an ASP.NET MVC View as PDF file using iTextSharp for the conversion. Bear in mind though that iTextSharp was not meant for converting HTML to PDF so it might not cope very well with complex HTML pages and CSS styles.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download