Forum


Replies: 2   Views: 527
Docx rtl generation from file template
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 06-10-2022 - 13:55

Hello,

The setRTL method doesn't transform a LTR template into a RTL template. This method does the following:

Sets global right to left options

RTL options are enabled in the document and also new contents added apply RTL settings, but existing contents and styles are not transformed to RTL. If you want to change existing styles, for example to set RTL and bidi to existing template styles, you'd need to use DOCXCustomizer.

We recommend you generate a new RTL template from your LTR template.

The error you get may appear if some footnote or endnote content in the document doesn't include style tags to apply RTL.

Regards.