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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ring ZhongRank #6,843 · 255 reputationPosted Dec 12, 2013, 9:35 PM EST
<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.
mohammed shamsheerRank #4,152 · 361 reputationPosted Dec 12, 2013, 10:51 PM EST
Ring ZhongRank #6,843 · 255 reputationPosted Dec 12, 2013, 10:53 PM EST
mohammed shamsheerRank #4,152 · 361 reputationPosted Dec 12, 2013, 11:21 PM EST
Ring ZhongRank #6,843 · 255 reputationPosted Dec 15, 2013, 8:10 PM EST