views:

218

answers:

3

I have looked for a good solution for rendering a PDF based on a web page / HTML string, that can also keep the CSS styling.

Does anyone know of any good solutions for this?

Thanks in advance.

+1  A: 

If you are willing to pay you can take a look here

Greco
A: 

I've used the free and open source iTextSharp before with some success. I don't think it supports the case where you have a separate .css file, however it does apply inline css you use (the style attribute).

Typically you end up having to create a separate XHTML page for PDF generation with inline styles (and sometimes tables) in order to get the PDF to look right.

+2  A: 

TRY ABCPDF

I have successffully used in the past.

Gokul