Jump to content

how to add a text line in footer of pdf invoice?


you86

Recommended Posts

Hello

 

I want to add a line in footer of pdf invoice that "This is computer generated invoice and do not require any stamp or signature"

How can I add this?

 

I tried to use function Footer() from http://www.fpdf.org/en/tutorial/tuto2.htm,

 

function Footer()

{

// Position at 1.5 cm from bottom

$this->SetY(-15);

// Arial italic 8

$this->SetFont('Arial','I',8);

// Page number

$this->Cell(0,10,'this is a computer generated invoice',0,0,'C');

}

 

but it didnt work.

 

any help in this regarding would be high appreciated :)

 

cheerz :)

Link to comment
Share on other sites

Hi there, in the invoicepdf.tpl, add this before # Generation Date:

 

$alert = "This is computer generated invoice and do not require any stamp or signature";

$pdf->SetFont('helvetica','',;
$pdf->SetFillColor(255,246,191);
$pdf->MultiCell(170,6,$alert,2,'L','1','','','','1');

 

;)

Link to comment
Share on other sites

Hi there, in the invoicepdf.tpl, add this before # Generation Date:

 

$alert = "This is computer generated invoice and do not require any stamp or signature";

$pdf->SetFont('helvetica','',;
$pdf->SetFillColor(255,246,191);
$pdf->MultiCell(170,6,$alert,2,'L','1','','','','1');

 

;)

 

Shouldn't that be "does not" instead of "do not"?

Link to comment
Share on other sites

Hi there, in the invoicepdf.tpl, add this before # Generation Date:

 

$alert = "This is computer generated invoice and do not require any stamp or signature";

$pdf->SetFont('helvetica','',;
$pdf->SetFillColor(255,246,191);
$pdf->MultiCell(170,6,$alert,2,'L','1','','','','1');

 

;)

 

there is no # Generation Date in invoicepdf.tpl

 

can you give me few more line above or blow # Generation Date which i can match in invoicepdf.tpl

Link to comment
Share on other sites

there is no # Generation Date in invoicepdf.tpl

 

can you give me few more line above or blow # Generation Date which i can match in invoicepdf.tpl

 

It should be at the very bottom of the template. It is in both v5.0.3 and v5.1.2.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated