1

I have an HTML file with CSS3 style, which I want to "accurately" convert to PDF, that's say print all styles which I cannot do with Firefox and Opera, all output PDF lost some styles(shadows or background).

I use nth-child to show different background color like below, and that is very important to my article:

li:nth-child(2n) {
    background: #eee;
    text-shadow: 1px 1px 1px #ccc;
}
li:nth-child(2n-1) {
    background: #ddd;
    text-shadow: 1px 1px 1px #fff;
}

1 Answer 1

1

Try WkHtmlToPdf. http://wkhtmltopdf.org/

wkhtmltopdf is an open source (LGPLv3) command line tool to render HTML into PDF using the Qt WebKit rendering engine.

2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .