Have you tried "PDF Vision.NET" ? This is a commercial library, but the payment costs justify themselves :) Only $ 150. I think you should try.
Use this code to convert HTML to PDF in Asp.NET/C#:
SautinSoft.PdfVision obj = new SautinSoft.PdfVision(); obj.PageStyle.PageSize.A4(); byte [] pdf = obj.ConvertHtmlFileToPDFStream(@"http://www.somesite.com"); if (pdf!= null) { Response.Buffer = true; Response.Clear(); Response.ContentType = "application/PDF"; Response.AddHeader("Content-Disposition:", "attachment; filename=Result.pdf"); Response.BinaryWrite(pdf); Response.Flush(); Response.End();
Jyoti
source share