This page demonstrates how to customize export to PDF and the Print form for a single record. For this purpose you need to override the export/pdf_record.tpl and view/print_grid.tpl templates respectively (note that the sales_invoice.tpl template is shared between those templates to avoid code duplication) and point PHP Generator to use modified templates with the OnGetCustomTemplate event.

Click any of or buttons to see the generated invoice. Click the button to get familiar with the event handler code.