# mPDF and Bootstrap Issues

**URL:** <https://community.open-emr.org/t/mpdf-and-bootstrap-issues/8514>\
**Category:** OpenEMR Development\
**Created:** [May 12, 2017, 9:13pm UTC](https://community.open-emr.org/t/mpdf-and-bootstrap-issues/8514 "2017-05-12T21:13:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [May 12, 2017, 9:13pm UTC](https://community.open-emr.org/t/mpdf-and-bootstrap-issues/8514/1 "2017-05-12T21:13:34Z")

</div>

With all the bootstrap being added lately, eventually someone will run across bootstrap not playing well with pdf generation. I was able to get bootstrap tables and most other styles to work with mPDF by creating a bootstrap 3 theme specific to pdf. Some functions, like grids, don’t work and I am working to re-style to html5 using width percents. Because bootstrap calculates many styles on the fly(even calculating margins and padding) this may not be possible.  
Anyway, Until I get to adding capability to custom report and you run across this, I can give you the theme.

---

<div class="post-metadata">

**Author:** ![brady.miller](https://community.open-emr.org/user_avatar/community.open-emr.org/brady.miller/32/10178_2.png) [@brady.miller](https://community.open-emr.org/u/brady.miller)\
**Post date:** [May 14, 2017, 2:45am UTC](https://community.open-emr.org/t/mpdf-and-bootstrap-issues/8514/2 "2017-05-14T02:45:52Z")

</div>

@sjpadgett ,

Sounds good. I probably won’t try touching a script that outputs html/mpdf this until have a really good handle on bootstrap; I’m currently working on the low hanging fruit like reports and forms (the new/view but not the report.php to avoid messing up reports for now). @robert.down is bravely working on bootstrap stuff in more centralized places, and will avoid the places that use html/mPDF for now.

-brady

---

<div class="post-metadata">

**Author:** ![Agent\_Smith](https://community.open-emr.org/letter_avatar_proxy/v4/letter/a/cdc98d/32.png) [@Agent\_Smith](https://community.open-emr.org/u/Agent_Smith)\
**Post date:** [August 29, 2018, 4:27am UTC](https://community.open-emr.org/t/mpdf-and-bootstrap-issues/8514/3 "2018-08-29T04:27:20Z")

</div>

Kindly share bootstrap stylesheet for mpdf @sjpadgett

---

<div class="post-metadata">

**Author:** ![Rodrigo\_Goncalves](https://community.open-emr.org/user_avatar/community.open-emr.org/rodrigo_goncalves/32/11973_2.png) [@Rodrigo\_Goncalves](https://community.open-emr.org/u/Rodrigo_Goncalves)\
**Post date:** [August 31, 2018, 5:30pm UTC](https://community.open-emr.org/t/mpdf-and-bootstrap-issues/8514/4 "2018-08-31T17:30:44Z")

</div>

Hello, @sjpadgett could you share the theme of Bootstrap?

Thanks!
