hello all,
please do clear this is my urgent requirement.
html to pdf in asp.net using c#
Thanks in advance
Niraj
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
Satyapriya NayakRank #47 · 31.5K reputationPosted Jan 15, 2014, 8:26 PM EST
http://www.c-sharpcorner.com/UploadFile/9f0ae2/convert-aspx-page-into-pdf-in-Asp-Net/
http://hspinfo.wordpress.com/2008/01/12/how-to-convert-html-content-to-pdf-file/
http://www.codeproject.com/Articles/7089/Generate-PDF-documents-from-a-HTML-page-using-ASP
http://www.developerfusion.com/code/4266/how-to-create-pdf-files-from-aspnet-pages/
Sanjay Negi6 reputationPosted Jun 17, 2014, 11:33 PM EDT
Andy4 reputationPosted Mar 6, 2014, 1:41 AM EST
Rahul PrasadRank #2,557 · 546 reputationPosted Apr 8, 2014, 5:59 PM EDT
Here is my solution with C#
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();
//Launching the Pdf file.
System.Diagnostics.Process.Start("sample.pdf");
}
If there are still any problems,you can refer the full Article-Convert HTML to PDF, hope this helps.
REGARDS
Nicholas Barns12 reputationPosted May 2, 2014, 12:08 AM EDT
Munesh SharmaRank #174 · 13.9K reputationPosted May 2, 2014, 12:23 AM EDT
SelectPdf14 reputationPosted Feb 25, 2015, 4:52 AM EST
More details: http://selectpdf.com/community-edition/
Max4 reputationPosted Mar 14, 2016, 4:38 AM EDT
v.PageStyle.PageSize.Letter();
v.ConvertHtmlFileToPDFFile(@"http://www.cnn.com", @"d:\web-sites\cnn.pdf");
Best wishes,
Max
Evopdf Support4 reputationPosted Sep 6, 2016, 2:06 AM EDT
Ali Jago Seif23 reputationPosted Jan 29, 2018, 7:48 AM EST
Bharathi RajaRank #1,777 · 842 reputationPosted Jan 30, 2018, 6:01 PM EST
" + Pass + "
Christopher Joshua5 reputationPosted Feb 12, 2018, 7:32 PM EST
Garry Wang9 reputationPosted Apr 18, 2019, 5:16 AM EDT
Laxmidhar SahooRank #383 · 6.6K reputationPosted Apr 18, 2019, 6:58 AM EDT
Maen BadwanRank #2,520 · 556 reputationPosted Apr 25, 2019, 2:37 AM EDT
https://www.leadtools.com/help/leadtools/v20/dh/javascript/dox/leaddocument-convert.html
https://www.leadtools.com/sdk/document/document-converter
Also, you can find the online project here:
https://demo.leadtools.com/JavaScript/DocumentViewer/
https://services.leadtools.com/documentation/tutorials
https://services.leadtools.com/documentation/tutorials/net-cs-conversion-tutorial
Amit KumarRank #459 · 5.4K reputationPosted Apr 25, 2019, 8:50 AM EDT
Atir TahirRank #3,495 · 415 reputationPosted Jun 1, 2019, 11:09 PM EDT
Mageshwaran RRank #411 · 6.1K reputationPosted Nov 22, 2019, 7:47 AM EST