DomPDF: Production Ready Configuration
DomPDF – Production Ready Configuration
PHP
- Version: 5.3 and above
- Settings:
allow_url_fopen
- Extensions: MBString (Installation), GD (Installation), DOM(enabled by default)
DomPDF Configuration / Usage
Enable Remote –def("DOMPDF_ENABLE_REMOTE", true);
- Read/Write access to the
DOMPDF_TEMP_DIR
Use Absolute URL- Use Full Document Root or Relative
(if you’re still unable to view the image) - Use JPEG
UPDATE (2015-02-17): Security Issues on allow_url_fopen or Is allow_url_fopen safe?