Ravi Ravi - 5 months ago 179
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.


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.