Jump to content

Hooking PDFInvoice examples


bellini13
 Share

Recommended Posts

hey all, looking for some assistance on either overriding PDF.php or hooking PDFInvoice.

I'd like to add an additional line item above the Total line of an invoice. I can easily do this by just adding my logic to the PDF.php class, however I would love to try to figure out how to do this via hooking instead.

Anyone have any working examples of hooking PDFInvoice to add custom content, but placing above the Total line, as opposed to under the Total line? Is that even possible using the fpdf library?

Share this post


Link to post
Share on other sites

Thanks angora,

I've attached a screen shot of what I'm trying to do for reference in case anyone has an idea on how to accomplish both as line hooks.

For now I have overrode the PDF.php class, and just re-implemented the invoice function, but i'm trying to avoid doing those types of modifications if not required.

47625_UpDZGbOlHHrizPdGZ3LF_t

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More