I need to include the ‘customer’s logo’ in the PDF file when we download it from invoice.
I tried with the following code.
$page->drawImage($customerLogo, 25, 800, 125, 825);
But it through the following fatal error…
Fatal error: Call to a member function getResource() on a non-object in D:\Application\xampp\htdocs\projects\guardian\lib\Zend\Pdf\Page.php on line 344
Any one knows, how to fix this problem.
I have used this method before:
Place an image in image in your /media folder then where you want the image to appear inser this code:
You will have to play with your php drawImage dimensions and coordinates. But this should do it.