CSS Styling for Phantom PDF markup?

  • Hi, I'm new to jsreport and hope someone can help.
    I've been looking around for answers but I can't seem to find any.

    I'm working on a report template and using the Phantom PDF recipe. When I run it, things look ok but the text size is really big. How do I go about making the overall font size of everything smaller? And how do I do specific styling tweaks to certain items? Underlining, bolding, font size etc?
    Just not sure how to change the look of my report from what gets automatically spit out.


  • Really? 22 views and no one has any ideas? =(

  • administrators

    @hopper08 hi! if you want to make the general font size smaller just use normal CSS on a root element, like this:

    body {
      font-size: 12px;

    and it is the same for specific elements in your template, everything that you can style with CSS in a normal webpage can be styled in the same way in a report.

Log in to reply

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.