Jump to content

How to turn invoices to landscape


ayin

Recommended Posts

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

  • 2 months later...

/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

×
×
  • Create New...