I am trying to create pdf reports from Meteor using the SSR package and wkhtmltopdf. Everything is going well, except for one thing: when I tie bootstrap 3, I lose all colors. Column format, table format, etc. Everything is fine, but everything is black on white. Even if I use the built-in css, all I get is black and white.
If I remove the boostrap link, all the colors will go through as expected.
Here is the template that I am executing:
<Template name="spaceUtilSpacePDF"> <html> <head> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css"> </head> <body> <div class="container-fluid"> <div class="row"> <div class="col-xs-4"> <div class="well"> <table class="table"> <tbody> <tr> <td class="bg-danger"> Stuff</td> <td style="background-color:blue"> Stuff</td> <td style="color:red"> Stuff</td> </tr> </tbody> </table> </div> </div> </div> </div> <div style="page-break-after:always"></div> <button class="btn btn-danger">Test Button</button> </body> </html> </Template>
css colors twitter-bootstrap-3 wkhtmltopdf
Itinerati
source share