Jump to content

pdf invoice: change "UNPAID" font color/size


chas5427

Recommended Posts

Line 26 sets the font, style, and size, line 31 sets the banner around it.

 

$pdf->SetFont('freesans','B',28);

 

Freesans font, bold, size 28

 

And for the banner:

 

$pdf->Cell(100,18,strtoupper($statustext),'TB',0,'C','1');

 

100px wide, 18px high, all upper case, border on Top and Bottom, text Centered and horizontal scaling.

 

More info on the Cell() function can be found here:

 

http://api.joomla.org/com-tecnick-tcpdf/TCPDF.html#Cell

 

And SetFont() if you need it.

 

http://api.joomla.org/com-tecnick-tcpdf/TCPDF.html#SetFont

Link to comment
Share on other sites

thank you for the information. any thoughts on where i would change the font color?

 

and should these changes render each time i refresh my browser (for existing invoices), or would i need to create a new invoice?

 

chas

Edited by chas5427
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