Goodbye DOMPDF. Hello mPDF.
As of Gravity Forms PDF Extended v3.0.0 we have removed the DOMPDF package from our plugin and integrated the more advanced mPDF system. Along with a new HTML to PDF generator, we’ve rewritten the entire plugin’s base code to make it more user friendly to both hobbyists and rock star web developers. Configuration time is cut in half and advanced features like adding security features is now accessible to users who have little experience with PHP.
What does mPDF offer that DOMPDF didn’t?
There are many new and exciting features actually, as well as comprehensive documentation. These new features do come at a small price however and that’s a lack of CSS cascading, psudo-classes and CSS3 selector support but we feel the benefits far outweighs this one shortcoming.
mPDF offers the following features out of the box:
- Language Support – almost all languages are supported including RTL (right to left) languages like Arabic and Hebrew and CJK languages – Chinese, Japanese and Korean.
- HTML Page Numbering
- Odd and even paging with mirrored margins (most commonly used in printing).
- Nested Tables
- Text-justification and hyphenation
- Table of Contents
- Password protection
- UTF-8 encoded HTML
- Better system resource handling
To see just what mPDF is capable of view the custom template examples on our documentation pages.
What else is new in v3.0.0?
A new HTML to PDF package wasn’t the only change to this edition of the software. We have rewritten the entire configuration system and made it super easy to get the software up and running.
Users will no longer place code in their active theme’s functions.php file. Instead, configuration will happen in a new file called configuration.php, inside the PDF_EXTENDED_TEMPLATES folder (in your active theme).
Generating the default PDF and sending it via your notifications is now as easy as adding the following code to this file:
$gf_pdf_config = array( 'form_id' => '1', 'notifications' => true );
More advanced features can be added in a similar way.
We’ve spend a lot of time ensuring there won’t be compatibility issues when upgrading from a previous version of the software. Before moving to v3.0.0 read our migration guide to determine what changes you will need to make.
Keep up to date with Gravity Forms PDF Extended
Just pop in your email address below and we’ll make sure you get an email when we release a new version of Gravity Forms PDF Extended.