[ACCEPTED]-mPDF font-size not working for long text in a table-mpdf
Accepted answer
mPDF uses autosizing tables and this influences, among 4 other things, the font-size as well. When 3 outputting tables with mPDF you need to 2 set:
<table style="overflow: wrap">
on every table. See Auto-layout algorithm 1 in the mPDF manual for reference.
If anyone still got the same issue after 3 tested with accepted answer, try this :
<table style="overflow: wrap" autosize="1">
And 2
$mPdf->shrink_tables_to_fit = 1;
Hope this helped as my case was solved only 1 with these combination
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.