Jump to content

cschneider

Members
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • Location
    Germany
  • Activity
    Freelancer

cschneider's Achievements

Newbie

Newbie (1/14)

0

Reputation

1

Community Answers

  1. Thank you tuk66 The solution was to paste the code in the Header() function and not in the writePage(). Regards, Christian.
  2. 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.
×
×
  • Create New...