Jump to content

Full size image PDF invoice backgound


Recommended Posts

Hi

 

I'm new to PrestaShop.

 

I tried to add a full size image background in the invoice PDF.

 

Therefore I added 

// get current auto-page-break mode
$auto_page_break = $this->AutoPageBreak;
// disable auto-page-break
$this->SetAutoPageBreak(false, 0);
// set background image
$img_file = 'filename.jpg';
$this->Image($img_file, 0, 0, 0, 0, 'jpeg', '', 'T', false, 300, '', false, false, 0, true, false, true, false, '');

where filename is the fullname path the the jpg file.

 

The code above from the tcpdf tutorial.

 

I use PrestaShop 1.5.6.1 and modified in the file PDFGenerator.php the writePage() function before SetAutoPageBreak.

 

Any ideas?

 

Regards,

    Christian.

Link to comment
Share on other sites

  • 8 months later...

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...