xInvoice comes with many different designs of invoice pdf. You can set which design to use by setting it using the setTemplateName() function or in config file. Default is set in config file as invoice/invoice_1.php. All template files are located at script/templates folder. These designs can be easily edited as most of the code is in html. To edit any design, you should create a new design file by copying any existing design. This will prevent overwriting of your changes for future updates. You can set different data for each template file by setting dataFile.
Example templates with data files
//create object of Xinvoice class $xinvoice = new Xinvoice(); //All templates are located in script/templates folder. You need to provide path after template folder. $xinvoice->setTemplateName("invoice/invoice_2.php"); //call render function echo $xinvoice->render();