webpage to pdf converter
any tool or code to convert webpage to pdf converter with style.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ring ZhongPosted Dec 16, 2013, 1:10 AM
mohammed shamsheerPosted Dec 13, 2013, 4:21 AM
Ring ZhongPosted Dec 13, 2013, 3:53 AM
mohammed shamsheerPosted Dec 13, 2013, 3:51 AM
Ring ZhongPosted Dec 13, 2013, 2:35 AM
<1>recommend a powerful component for you, it called Spire.PDF. Download it from here,
http://www.e-iceblue.com/Introduce/pdf-for-net-introduce.html
how to use it to convert webpage to pdf,
static void Main(string[] args)
{
//Create a pdf document.
PdfDocument doc = new PdfDocument();
String url = "http://www.london2012.com/news/articles/paralympic-torch-relay-route-revealed-1258473.html";
doc.LoadFromHTML(url, false, true, true);
//Save pdf file.
doc.SaveToFile("sample.pdf");
doc.Close();
}
http://www.e-iceblue.com/Knowledgebase/Spire.PDF/Program-Guide/Convert-HTML-to-PDF.html
http://www.e-iceblue.com/Knowledgebase/Spire.PDF/Spire.PDF-Program-Guide/New-Plugin-of-Converting-HTML-to-PDF.html
static void Main(string[] args)
{
HtmlConverter.Convert("http://www.wikipedia.org/", "HTMLtoPDF.pdf",
//enable javascript
true,
//load timeout
100 * 1000,
//page size
new SizeF(612, 792),
//page margins
new PdfMargins(0, 0));
}
<2>also recommend the free pdf tool for you, it also could convert webpage to pdf, download it from here:
http://www.e-iceblue.com/Introduce/freepdfconverter.html
believe they are useful for you.