Sunday, March 27, 2011

Maintain CSS styling when converting HTML to PDF in ASP.NET

Hi,

I am using ITextSharp to convert a HTML page to PDF.

However, ITextSharp prints the CSS in the STYLE declaration straight out, ignores stylesheets even when added programatically and only listens to some inline styles (e.g. font-size and color but not background-color).

Is there something I am missing with ITextSharp, or is there a better (and free) way of doing this conversion?

Thanks in advance,

From stackoverflow

0 comments:

Post a Comment