How to Get Wkhtmltopdf to Display Th and Td Background Gradients

Variable page height with wkhtmltopdf

I would suggest taking a look at: https://github.com/AAverin/JSUtils/tree/master/wkhtmltopdfTableSplitHack

From what I understand, you would only need to define a specific class to your HTML table element, and the JS script would do the rest.

Also, you might want to look at theses (which eventually lead me to the first link)

  • https://gist.github.com/niflostancu/3683510
  • https://gist.github.com/bluntelk/5573089

Applying a single background gradient to a table row

set background-attachment:fixed; on thead and it will work fine

http://jsfiddle.net/cGV47/64/



Related Topics



Leave a reply



Submit