-3

Possible Duplicate:
Convert HTML to PDF in .NET

How can i use the acrobat driver to covert web page to pdf , i have a icon on my browser. How can i use that in ASP.NET to convert the web page to pdf pro grammatically.

Community
  • 1
  • 1
sameer
  • 1,635
  • 3
  • 23
  • 35
  • 3
    Search first! http://stackoverflow.com/questions/564650/convert-html-to-pdf-in-net – Josh Stodola Jun 15 '10 at 14:28
  • @Josh Stodola: To be fair, this does ask specifically about the acrobat driver as opposed to ItextSharp. You're right though, this has been addressed before. – Roman Jun 15 '10 at 14:31
  • i have acrobat installed on my system , i have a toolbar icon in the IE what im trying to know is can i use this function through program in ASP.NET application instead of opening each html doc in browser then clicking the icon. i dont know what is this -1 mean – sameer Jun 15 '10 at 14:36
  • Looks like clicking the icon will save you some money (that you'd pay for creating an app :) – František Žiačik Jun 15 '10 at 14:45

2 Answers2

1

For that you will need a server side library. PDFSharp is a good one that is free. They have a lot of samples.

Nate Pinchot
  • 3,288
  • 24
  • 35
0

Depending on the complexity of your web page, this free library may be your choice. To parse html, you can use HtmlWorker. It has some weaknesses, though, e.g. how the styles are used. I'm working on a library based on iTextSharp but independent from HTMLWorker which would have better CSS support, but it's not finished yet.

iTextSharp

František Žiačik
  • 7,511
  • 1
  • 34
  • 59