🔥 Gravity PDF v3 end of life was 2017-06-20 and this version is no longer supported. This legacy documentation is kept for reference only.
Example of Table Support in PDF Templates
TablesThe plugin ships with a number of PDF templates showing off the features of mPDF. These can be found in your PDF_EXTENDED_TEMPLATES directory.
There is quite good support for tables in mPDF (compared with similar software packages). It even includes advanced features like auto scaling text, nested tables and 90 degree rotation.Download Example PDF
There is no block-level CSS support inside tables, however the content will be rendered. That means no CSS targeted at block-level elements inside a table will be applied.
Rotating TableTables can be rotated 90 degrees so they fit nicely on portrait documents. This feature can be applied using the CSS
AutosizingIf a table's minimum width is too wide for the outer container it will automatically reduce the font size in order to fit. The minimum width is calculated by the sum of column widths required to fit the longest single word in the column.
If you want to prevent any unnecessary resizing for a particular table you can add the
autosize="1" attribute to the table element
Repeating Header and FootersIf a table extends across multiple pages the
<tfoot></tfoot>elements will be appended and prepended respectfully to each new page the
Please read the mPDF documentation for additional details on table configuration.