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();