Block and Inline HTMLAll HTML elements have been hardcoded to either
inline. This cannot be changed and using
display: block or
display: inline won't have any effect.
TablesBlock elements like
<li>tags are not supported inside tables. The content is displayed, but any CSS properties which apply are ignored.
Block Floating/PositioningBlocks which are defined as
position: absolute or
position: fixed, or are floated have only limited support.
Corrupt PDF FileThis is usually caused by PHP errors generated while the PDF is created. The easiest fix is to turn off PHP error reporting and log the errors to a file (something that should be done in all production environments).
To debug the issue save the PDF to disk and open it up in a text document. The start of the PDF will contain a PHP error message which will help narrow down the issue.
Text being replaced by random numbers / dates.mPDF uses a number of reserved variables which can be inserted into a template and replaced when generating a PDF.
Blank Screen and no PDFIf you are getting a blank screen when attempting to generate a PDF there may be a script error. Setting
true in your
wp-config.php file and viewing the PDF again should reveal the problem. In a majority of cases this is caused by a lack of RAM assigned to your web server.