Skip to main content
Updated to correct information about rendering engines.
Source Link
AffineMesh
  • 1.1k
  • 9
  • 14

To convert HTML to PDF in C# use ABCpdf.

ABCpdf makescan make use of Microsoft XML Core Services (MSXML)the Gecko or Trident rendering engines, so your HTML table will renderlook the same as it appears in FireFox and Internet Explorer.

There's an on-line demo of ABCpdf at www.abcpdfeditor.com. You could use this to check out how your tables will render first, without needing to download and install software.

For rendering entire web pages you'll need the AddImageUrl or AddImageHtml functions. But if all you want to do is simply add HTML styled text then you could try the AddHtml function, as below:

Doc theDoc = new Doc(); theDoc.FontSize = 72; theDoc.AddHtml("<b>Some HTML styled text</b>"); theDoc.Save(Server.MapPath("docaddhtml.pdf")); theDoc.Clear(); 

ABCpdf is a commercial software title, however the standard edition can often be obtained for free under special offer.

To convert HTML to PDF in C# use ABCpdf.

ABCpdf makes use of Microsoft XML Core Services (MSXML) so your HTML table will render the same as it appears in Internet Explorer.

There's an on-line demo of ABCpdf at www.abcpdfeditor.com. You could use this to check out how your tables will render first, without needing to download and install software.

For rendering entire web pages you'll need the AddImageUrl or AddImageHtml functions. But if all you want to do is simply add HTML styled text then you could try the AddHtml function, as below:

Doc theDoc = new Doc(); theDoc.FontSize = 72; theDoc.AddHtml("<b>Some HTML styled text</b>"); theDoc.Save(Server.MapPath("docaddhtml.pdf")); theDoc.Clear(); 

ABCpdf is a commercial software title, however the standard edition can often be obtained for free under special offer.

To convert HTML to PDF in C# use ABCpdf.

ABCpdf can make use of the Gecko or Trident rendering engines, so your HTML table will look the same as it appears in FireFox and Internet Explorer.

There's an on-line demo of ABCpdf at www.abcpdfeditor.com. You could use this to check out how your tables will render first, without needing to download and install software.

For rendering entire web pages you'll need the AddImageUrl or AddImageHtml functions. But if all you want to do is simply add HTML styled text then you could try the AddHtml function, as below:

Doc theDoc = new Doc(); theDoc.FontSize = 72; theDoc.AddHtml("<b>Some HTML styled text</b>"); theDoc.Save(Server.MapPath("docaddhtml.pdf")); theDoc.Clear(); 

ABCpdf is a commercial software title, however the standard edition can often be obtained for free under special offer.

Source Link
AffineMesh
  • 1.1k
  • 9
  • 14

To convert HTML to PDF in C# use ABCpdf.

ABCpdf makes use of Microsoft XML Core Services (MSXML) so your HTML table will render the same as it appears in Internet Explorer.

There's an on-line demo of ABCpdf at www.abcpdfeditor.com. You could use this to check out how your tables will render first, without needing to download and install software.

For rendering entire web pages you'll need the AddImageUrl or AddImageHtml functions. But if all you want to do is simply add HTML styled text then you could try the AddHtml function, as below:

Doc theDoc = new Doc(); theDoc.FontSize = 72; theDoc.AddHtml("<b>Some HTML styled text</b>"); theDoc.Save(Server.MapPath("docaddhtml.pdf")); theDoc.Clear(); 

ABCpdf is a commercial software title, however the standard edition can often be obtained for free under special offer.