SuiteCRM
SuiteCRM copied to clipboard
SuiteCRM 7.14.3 PDF Template Landscape orientation is ignored when using the Legacy MPDF Engine
If the Admin PDF Settings is set to use the Legacy MPDF Engine and a PDF Template with Orientation Landscape checked is used, the PDF is generated as Portrait, as if Orientation had been set to Portrait. The orientation works correctly using the TCPDF Engine.
Expected Behavior
The PDF should be generated in Landscape orientation when Orientation Landscape is checked in the PDF Template.
Actual Behavior
The PDF is generated in Portrait orientation regardless of the Orientation setting in the PDF Template.
Steps to Reproduce
- In Admin PDF Settings, set the Engine to MPDF
- Generate a PDF (from any module that supports this) where the Template has Orientation Landscape
- The generated PDF is in Portrait orientation
Context
We have a number of PDF templates with enough columns to need a Landscape Orientation. We cant use the new TCPDF Engine due to the current issues with formatting a large number of columns.
Your Environment
- SuiteCRM Version used: 7.14.3
- Browser name and version: Any
- Environment name and version (e.g. MySQL, PHP 7): 7.4.3
- Operating System and version (e.g Ubuntu 16.04): 20.04.6