Adding RTL support to generated badge PDF

Hi there,
Any thoughts on how to add RTL support to generated badge PDF even through modifying code? Currently, Arabic text appears unconnected and LTR.