ayin Posted September 2, 2014 Share Posted September 2, 2014 Hello, Can you guys tell me how can i turn invoices to landscape instead of portrait mode? I tried modifying the /tools/tcpdf/tcpdf.php to change the default parameter from: public function __construct($orientation='P', to; public function __construct($orientation='L', and did not work. ================= Any hints on how should i change it? Thanks Link to comment Share on other sites More sharing options...
tuk66 Posted September 5, 2014 Share Posted September 5, 2014 Change the constructor in /pdf/PDFGenerator.php. Link to comment Share on other sites More sharing options...
weckie Posted November 9, 2014 Share Posted November 9, 2014 Change the constructor in /pdf/PDFGenerator.php. Can you please tell us what the code would be for this. Thanks Link to comment Share on other sites More sharing options...
tuk66 Posted November 9, 2014 Share Posted November 9, 2014 /classes/pdf/PDFGenerator.php public function __construct($use_cache = false) { parent::__construct('L', 'mm', 'A4', true, 'UTF-8', $use_cache, false); $this->setRTL(Context::getContext()->language->is_rtl); } Link to comment Share on other sites More sharing options...
Recommended Posts