Change size of invoice to add advertisement using footer

Phoca Documentation - creating documentation in Joomla! CMS
bren
Phoca Member
Phoca Member
Posts: 13
Joined: 21 Sep 2011, 00:19

Change size of invoice to add advertisement using footer

Post by bren »

Hi,
I would like to make the receipt and invoice body smaller, so the footer can be enlarged.
Then I can simply edit the footer to just place out latest offers and products in this area.

Has anyone used the footer for this other than just a bit of text?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Change size of invoice to add advertisement using footer

Post by Jan »

Hi, there is no problem to write your own text to the footer :idea:

Jan
If you find Phoca extensions useful, please support the project
bren
Phoca Member
Phoca Member
Posts: 13
Joined: 21 Sep 2011, 00:19

Re: Change size of invoice to add advertisement using footer

Post by bren »

I know I can add text, but I want to add a big image at the bottom that say takes up 1/5 of the invoice page. The footer works great but to get it to fit on one page I need to shift the rest of the invoice up or am I missing something?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Change size of invoice to add advertisement using footer

Post by Jan »

Hi, yes, you can set padding of top and bottom, so whole content can be moved
If you find Phoca extensions useful, please support the project
bren
Phoca Member
Phoca Member
Posts: 13
Joined: 21 Sep 2011, 00:19

Re: Change size of invoice to add advertisement using footer

Post by bren »

Do you mean Margin under the Site tab or Foot Margin in the footer section as can not find any refernce to "padding"
Many thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Change size of invoice to add advertisement using footer

Post by Jan »

Hi, you can change both and test it - one moves the footer second footer plus change the place for content.

Jan
If you find Phoca extensions useful, please support the project
bren
Phoca Member
Phoca Member
Posts: 13
Joined: 21 Sep 2011, 00:19

Re: Change size of invoice to add advertisement using footer

Post by bren »

Sorry did not follow that
bren
Phoca Member
Phoca Member
Posts: 13
Joined: 21 Sep 2011, 00:19

Re: Change size of invoice to add advertisement using footer

Post by bren »

so roughley how would I go about adding say where a A4 sheet the top 20% is and advert the middle 60% is the normal invoice and the 20% on the bottom is another ad. Not sure how the footers and other values would relate to this.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Change size of invoice to add advertisement using footer

Post by Jan »

Hi, the pdf creating works such way (I din't develop it, only describe how this works):

- header
- body
- footer

If you set top margin or bottom margin, it means there will be more place for header and footer but in such case the body will be cut (as the places needs to be used for footer and header) ... and you can do margin inside one area too (e.g. inside header) which means a free place in header - it is not set by percentage but by fixed values.

Jan
If you find Phoca extensions useful, please support the project
bren
Phoca Member
Phoca Member
Posts: 13
Joined: 21 Sep 2011, 00:19

Re: Change size of invoice to add advertisement using footer

Post by bren »

Okay,

so I I enable foot and set
Display footer Yes
Display Footer line no
Footer data (image 2cm high by 5 cm wide)
Footer data Align justify
Footer display pagination No
Footer font type freemomo
Footer font size 10pt
Footer font style regular
footer cel height ratio 1.2
footer margin 20mm

Then at the site level
Margin Bottom: 100mm

Then I should be able to add the image in

Thanks for the help
Post Reply