Support » Plugin: WooCommerce Cart PDF » New pdf css ?

  • Resolved billgates107


    Hi, I have been using your plugin since version 1 and it worked great.

    In version 2, and the use of mpdf, it seems that my pdf-styles.php is not working the same anymore. I can see that the file is used, I can change the color, font-size or other CSS of some elements.
    But my table margins are not working the same anymore. As you can see in my screenshot, my value have some left margin, but I don’t want to.
    Another example, font-weight of my title is not working either.
    The cart output is the same, I inspected it with web inspector and the class names and tags are identical.
    This is the way it looked with version 1 :

    So is the way css is working in version 2 the same as version 1 ? Thank you.

    • This topic was modified 3 months, 3 weeks ago by billgates107.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Jensen



    Yes you are correct there are differences in the styling because the plugin is now using mPDF. The decision to use this library was primarily because of better language support. I have also noticed differences in the CSS and a couple occasions where certain CSS doesn’t work. Here is the supported CSS for mPDF currently.

    Looking at your screenshots there are multiple notable differences, are you trying to get your v2 to look the same as v1?

    Hi, thank you, I’m gonna check your link.
    Yes I’m trying to get the V2 the same as V1.

    My cart-table.php and pdf-styles.php files didn’t change and my CSS is simple.

    Plugin Author David Jensen


    Would you mind sharing your cart-table.php and pdf-styles.php with me and I will see if I can get it the same as v1? You can email me at

    Yes of course, I’m gonna send you the files.
    Now, I remember that I had to replace table cells with divs to make my pdf readable on several pages.

    I created a topic on your support forum :

    So maybe I can’t apply the css I want on table cells. I guess I have to do the same output modification if I want to use the same css file.

    Can mpdf handle very long tables by default ?

    • This reply was modified 3 months, 3 weeks ago by billgates107.
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.