Jump to content

PDFGenerator Override, ayuda no toma el valor LETTER


Gerardo Martinez G

Recommended Posts

Tratando de hacer override de pdfgenerator, 
lo he puesto en el folder correcto, override/classes/pdf/PDFGenerator.php
he seguido segun prestashop las indicaciones y no toma el valor para cambiar el tamaño de la pagina
Gracias

<?php
class PDFGenerator extends PDFGeneratorCore
{
    public function __construct($use_cache = false, $orientation = 'P')
    {
        parent::__construct($orientation, 'mm', 'LETTER', true, 'UTF-8', $use_cache, false);
        $this->setRTL(Context::getContext()->language->is_rtl);
    }
}

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...