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.
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.
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.