xInvoice Beautifully designed invoices/sales order/ purchase orders/ quotes/ bills with few lines of codes

  
                            //create object of xinvoice
                            $xinvoice = new Xinvoice(array("datafile" => "data-invoice-6"));
                            //set template name
                            $xinvoice->setTemplateName("invoice/invoice_6.php");
                            // call render function on object to generate PDF
                               echo $xinvoice->render();
                            // example of code below if you want to display HTML only
                            //  echo $xinvoice->render("HTML");