OK...the real culprint is bootstrap.min.css.....there's some lines to enable print mode:
@media print {
* {
color: #000 !important;
text-shadow: none !important;
background: transparent !important;
box-shadow: none !important;
}
Once I changed to by removing the lines to these, then it works perfectly:
table {
border-collapse: collapse !important;
}
table-bordered th,
table-bordered td {
border: 1px solid #ddd !important;
}
Now I'm able to use PhantomJS to render large 7000 row bootstraped tables with color and much faster than wkhtmltopdf.
Leslie