Convert asp.net webpage to pdf file

Posted by Naidulaxmi under ASP.NET on 10/23/2012 | Points: 10 | Views : 3669 | Status : [Member] | Replies : 7
Hi Friends,

I am working on a website project in that project Convert asp.net webpage to pdf file .
For example site :http://support.persits.com/pdf/demo_invoice.asp
How will do this most urgent.






Thanks & Regards,

appalanaidu


Responses

Posted by: Jayakumars on: 10/23/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

try this url

http://www.codeproject.com/Articles/277065/Creating-PDF-documents-with-iTextSharp

Mark as Answer if its helpful to you

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naidulaxmi on: 10/23/2012 [Member] Starter | Points: 25

Up
0
Down
hi,

Thanks for your reply but not working.

Thanks & regards,

appalanaidu

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 10/23/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
try this
http://www.codeproject.com/Questions/341142/itextsharp-read-pdf-file

Mark as Answer if its helpful to you

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Eva2012 on: 10/23/2012 [Member] Starter | Points: 25

Up
0
Down
You can use below code to convert webpage of aspx,html,htm (including dynamic picture in it)to PDF by a .NET PDF component:
http://www.e-iceblue.com/Introduce/pdf-for-net-introduce.html

namespace htmltopdf

{
class Program
{
[STAThread]
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();
}
}
}




Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naidulaxmi on: 10/23/2012 [Member] Starter | Points: 25

Up
0
Down
hi Eva,

I will use any dll or not.Then u have use any dll please send me.

Thanks & Regards,


appalanaidu

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Eva2012 on: 10/23/2012 [Member] Starter | Points: 25

Up
0
Down
It needs a Spire.PDF for .NET dll,you can download one. how can I send it to you?

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Evanpan on: 3/22/2016 [Member] Starter | Points: 25

Up
0
Down
How about this pdf to png conversion tutorial?
http://www.pqscan.com/pdf-to-image/
I hope it helps.

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response