Want to have an image as the background of the PDF
If you want to set an image as the background of the complete PDF, this can be done by doing it this way. First of be clear that this will overwrite the header function.
In the file lib/ext4magehtml2pdf/ext4magehtml2pdf.php
find the method Header()
and put in the code below
$this->SetAutoPageBreak(false); $img_file = Mage::getBaseDir('media') . DS . 'wysiwyg' . DS . 'briefpapier.jpg'; $this->Image($img_file, 0, 0, 210, 297, '', '', '', 2, 300, '', false, false, 0); $this->setPageMark(); $this->SetAutoPageBreak(true, 30);
Related product:
HTML2PDF extension