Directionality of the pdf Set from direction of invoice pdf

Set the document RTL state. This defines the default alignment of tables, columns, text justification, page layout etc.

  
                             $xinvoice = new Xinvoice();
                            //set the document direction to rtl. Default is ltr.
                            $xinvoice->setDirectionality("rtl");

                            echo $xinvoice->render();