PDF Invoice Layout for VM 1.1.3

Before you ask about IDnR Addon see the VirtueMart - Invoice, Delivery Note and Receipt Addon
lostmail
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 28 Jul 2009, 07:50

PDF Invoice Layout for VM 1.1.3

Post by lostmail »

Are there any pre formatted layouts for the PDF invoice print for VM 1.1.3 ?

How can i avoid the lines for the boxes ?
Logo is too large in PDF.

Thanks !
lostmail
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 28 Jul 2009, 07:50

Re: PDF Invoice Layout for VM 1.1.3

Post by lostmail »

Ups - I found that there is another Forum category for VM
viewforum.php?f=27&start=0

Please move this topic there...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PDF Invoice Layout for VM 1.1.3

Post by Jan »

Hi, moved.

There were two pre formatted layouts (which you can see as example, but they are obsolete and cannot be used, as the whole script was updated :-( )

So you can change the formatting in these files:

- administrator\components\com_virtuemart\pdf\delivery.pdf.php
- administrator\components\com_virtuemart\pdf\phoca.tcpdf.php

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PDF Invoice Layout for VM 1.1.3

Post by Jan »

Hi, I don't know the solution as I didn't test it, but you should add new page in tcpdf and set for this new page the conditions. But as I wrote I don't know how to add e.g. last page with conditions, try to see tcpdf forum - http://tcpdf.org

Jan
If you find Phoca extensions useful, please support the project
libertybn
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 31 Jul 2009, 21:57

Re: PDF Invoice Layout for VM 1.1.3

Post by libertybn »

Hi!
Which is the use of the single php-file?
For what is delivery.pdf.php?
And for what is phoca.tcpdf.php?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PDF Invoice Layout for VM 1.1.3

Post by Jan »

Hi,
For what is delivery.pdf.php?
And for what is phoca.tcpdf.php?
Bot files are working with tcpdf methods and caused rendering of pdf.

Jan
If you find Phoca extensions useful, please support the project
libertybn
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 31 Jul 2009, 21:57

Re: PDF Invoice Layout for VM 1.1.3

Post by libertybn »

Hi!
I don´t really have a clue how this tcpdf is working, so please help.

I just need one thing.

The pdf-routine doesn´accept .png files from the logo.
But because I don´t have white background on the page I need the logo to be transparent.
Where should I put in the
files delivery.pdf.php or phoca.tcpdf.php the acceptance for png images?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PDF Invoice Layout for VM 1.1.3

Post by Jan »

Hi, the PNG is not supported there, as this addon uses standard tcpdf which is in Joomla! the support of PNG doesn't work there :-(

Jan
If you find Phoca extensions useful, please support the project
Post Reply