VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: chaldama on August 19, 2015, 09:41:06 AM

Title: Problems with PDF invoice PDF (blank PDF only header)
Post by: chaldama on August 19, 2015, 09:41:06 AM
At http://www.nordicwalkingstokken.com/ which runs in VM 3.0.9 all PDF invoices show up blank. The files only contain the header image and information and "//" in the content area.

I already reinstalled the latest version of the tcpfdf library but this does not make a difference.

Any ideas how to solve this?
Title: Re: Problems with PDF invoice PDF (blank PDF only header)
Post by: kmaciej on September 28, 2015, 03:34:25 AM
i got simillar problem with products for download (iStraxx plugin)
Title: Re: Problems with PDF invoice PDF (blank PDF only header)
Post by: Studio 42 on September 28, 2015, 11:21:43 AM
Hi,
I solved my tcpdf problem on downloading this package, if you use VM 3.0.6 + :
http://dev.virtuemart.net/attachments/download/905/com_tcpdf_1.0.0.zip
Regards,
Patrick
Title: Re: Problems with PDF invoice PDF (blank PDF only header)
Post by: chaldama on September 28, 2015, 13:32:23 PM
Hi Patrick,
Thank you for replying.
I tried your solution but unfortunately, the invoices are still empty, except for the header and "//" in the content area.
Regards,
Marloes
Title: Re: Problems with PDF invoice PDF (blank PDF only header)
Post by: Studio 42 on September 28, 2015, 14:24:12 PM
Hi Marloes,
Have you try to set joomla default template (isis) for your tests ?
perhaps your template is obsolete and call an unexisting function .
Title: Re: Problems with PDF invoice PDF (blank PDF only header)
Post by: chaldama on September 28, 2015, 15:32:35 PM
Thank you for your reply.
My administrator template already is set to Isis. Or do you mean changing my frontend template from Yagendoo to standard?
Title: Re: Problems with PDF invoice PDF (blank PDF only header)
Post by: Milbo on September 28, 2015, 20:18:00 PM
Did you read here the chapter CUSTOMISING THE PDF ?
http://docs.virtuemart.net/manual/general-concepts/205-invoices.html
Title: Re: Problems with PDF invoice PDF (blank PDF only header)
Post by: chaldama on September 28, 2015, 20:29:13 PM
Hi Milbo,
Thank you for the tip but I do not need any customisations, I just want to use the standard PDF invoice. Currently this does not work.
Regards Marloes
Title: Re: Problems with PDF invoice PDF (blank PDF only header)
Post by: Milbo on September 29, 2015, 11:08:33 AM
" If you want to view the invoice in non-pdf format, just use the print view (go to the backend orders list, use the print icon, copy paste the link of the popup). it should look like this:
/index.php?option=com_virtuemart&view=invoice&layout=invoice&format=pdf&tmpl=component&virtuemart_order_id=5"

If you want to debug your Invoice, you must follow this procedure to exclude errors of the layout. When the pdf stays blank, then there is either an error in the layour, or there is a problem with an used image.
Title: Re: Problems with PDF invoice PDF (blank PDF only header)
Post by: chaldama on September 29, 2015, 20:59:33 PM
Hi Milbo,
Thank you, it was indeed the vendor image that caused the problem. So glad this is finally solved!
Regards Marloes
Title: Re: Problems with PDF invoice PDF (blank PDF only header)
Post by: Studio 42 on September 30, 2015, 02:48:00 AM
For info :
90% of full blank PDF pages in VM are from PNG images logo(or paiment, shipmnet image...) or template. Using default template and a jpg image sould work in most  cases.
Title: Re: Problems with PDF invoice PDF (blank PDF only header)
Post by: chaldama on September 30, 2015, 08:20:25 AM
Good to know, I will keep that in mind, thank you!