XML to PDF Convert xml to pdf

You can directly convert XML to PDF by passing the xml file. It will automatically convert xml to pdf. You can also define style, class etc optional parameter as 2nd argument. Please note xml must be in format to be convertible in 2d array.

  
                            $xinvoice = new Xinvoice();
                            //convert xml to pdf
                            echo $xinvoice->xmlToPDF("http://xinvoice.biz/script/downloads/file.xml");
                            // optional parameter to define style, class etc
                            //echo $xinvoice->xmlToPDF("http://xinvoice.biz/script/downloads/file.xml", array("style" => "'border: 1px solid #000'"));