I need a help to know how to convert the HTML Into PDF file IN C# Web application////
Is there any libray and code for this
THanks in Advance
Printable View
I need a help to know how to convert the HTML Into PDF file IN C# Web application////
Is there any libray and code for this
THanks in Advance
There's always this library :
http://www.gohtm.com/#easypdfsdk
A point of note to you : search for what you want using Google first. I just put in "HTML to PDF" into google and it brought up loads of answers.
When trying to find something out, go to Google.
If you're having problems with your code, come to us. :wave:
Darwen.
Hi,
I used before the <a href="http://www.winnovative-software.com">HTML to PDF</a> library for .NET from http://www.dotnet-reporting.com or the HTML to PDF converter from http://www.winnovative-software.com . It's pure .NET library, it doesn't use a printer driver. There is also a free html to pdf converter application built on top of this library. The conversion can be done with only a few lines of code:
PdfConverter pdfConverter = new PdfConverter();
pdfConverter.PdfDocumentOptions.PdfPageSize = PdfPageSize.A4;
pdfConverter.PdfDocumentOptions.PdfPageOrientation = PDFPageOrientation.Portrait;
pdfConverter.PdfDocumentOptions.PdfCompressionLevel = PdfCompressionLevel.Normal;
pdfConverter.PdfDocumentOptions.GenerateSelectablePdf = true;
pdfConverter.PdfDocumentOptions.ShowFooter = false;
pdfConverter.PdfDocumentOptions.ShowHeader = false;
pdfConverter.LicenseFilePath = Server.MapPath(@"~/Bin");
byte[] downloadBytes = pdfConverter.GetPdfFromUrlBytes(MyURL);
Regards,
Florin
A HTML to PDF converter would help.
I recommend http://www.hiqpdf.com to convert html to pdf, html to svg or html to image
Disclaimer: I'm working for this company.
Hi! You can use PDF Metamorphosis .Net for this. Library successfully sypports html to pdf converting and may be use without any additional components. Developers can use the PDF Metamorphosis.Net with Visual Basic, C#, J#, ASP.NET, Delphi DotNet etc.
Sample code for the converting:
SautinSoft.PdfMetamorphosis p = new SautinSoft.PdfMetamorphosis();
p.PageStyle.PageSize.A4();
p.HtmlToPdfConvertFile(@"c:\table.html", @"c:\Result.pdf");