Title: New pdf css ?
Last modified: June 5, 2020

---

# New pdf css ?

 *  Resolved [billgates107](https://wordpress.org/support/users/billgates107/)
 * (@billgates107)
 * [6 years ago](https://wordpress.org/support/topic/new-pdf-css/)
 * 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. [https://ibb.co/RyG71g9](https://ibb.co/RyG71g9) 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 : [https://ibb.co/r3KBbzg](https://ibb.co/r3KBbzg)
 * So is the way css is working in version 2 the same as version 1 ? Thank you.
    -  This topic was modified 6 years ago by [billgates107](https://wordpress.org/support/users/billgates107/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [David Jensen](https://wordpress.org/support/users/dkjensen/)
 * (@dkjensen)
 * [6 years ago](https://wordpress.org/support/topic/new-pdf-css/#post-12944365)
 * Hello
 * 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.
 * [https://mpdf.github.io/css-stylesheets/supported-css.html](https://mpdf.github.io/css-stylesheets/supported-css.html)
 * Looking at your screenshots there are multiple notable differences, are you trying
   to get your v2 to look the same as v1?
 *  Thread Starter [billgates107](https://wordpress.org/support/users/billgates107/)
 * (@billgates107)
 * [6 years ago](https://wordpress.org/support/topic/new-pdf-css/#post-12952456)
 * 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](https://wordpress.org/support/users/dkjensen/)
 * (@dkjensen)
 * [6 years ago](https://wordpress.org/support/topic/new-pdf-css/#post-12955086)
 * 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 [david@dkjensen.com](https://wordpress.org/support/topic/new-pdf-css/david@dkjensen.com?output_format=md)
 *  Thread Starter [billgates107](https://wordpress.org/support/users/billgates107/)
 * (@billgates107)
 * [6 years ago](https://wordpress.org/support/topic/new-pdf-css/#post-12955425)
 * 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 :
    [https://wordpress.org/support/topic/split-table-on-several-pages/](https://wordpress.org/support/topic/split-table-on-several-pages/)
 * 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 6 years ago by [billgates107](https://wordpress.org/support/users/billgates107/).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘New pdf css ?’ is closed to new replies.

 * ![](https://ps.w.org/wc-cart-pdf/assets/icon-256x256.png?rev=3339735)
 * [Cart PDF for WooCommerce](https://wordpress.org/plugins/wc-cart-pdf/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-cart-pdf/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-cart-pdf/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-cart-pdf/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-cart-pdf/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-cart-pdf/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [billgates107](https://wordpress.org/support/users/billgates107/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/new-pdf-css/#post-12955425)
 * Status: resolved