VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: kittmaster on August 28, 2012, 00:51:24 AM

Title: PDF Generation??? Where is it done? I need to modify it
Post by: kittmaster on August 28, 2012, 00:51:24 AM
I can't seem to figure out how the formatting of the pdf is done, the pdf files that I do find refer to "old" template format or something?

My pending emails and admin emails all look and format correctly, the PDF when order from pending to confirmed screws up my logo and other odd issues in the pdf itself.....

Where do I look to fix this?

Title: Re: PDF Generation??? Where is it done? I need to modify it
Post by: ivus on August 28, 2012, 01:45:51 AM
Hi kittmaster,

The PDF is generated from the same print template.

/components/com_virtuemart/views/invoice/tmpl/invoice.php
Title: Re: PDF Generation??? Where is it done? I need to modify it
Post by: kittmaster on August 28, 2012, 23:05:04 PM
Excellent, thank you for your help.
Title: Re: PDF Generation??? Where is it done? I need to modify it
Post by: seanlang1 on November 12, 2012, 11:46:56 AM
Sorry to reopen a resolved question, but I need to know how to add images to the header bar of the PDF. I have created a fully custom template which generates insurance documents, but can't work out how i would add images to the header.

$document->setTitle('Policy Number: 1763876/CPAS/2011/'. $this->orderDetails['details']['BT']->order_number);