We can give texts in different languages to NetSuite advanced HTML/PDF Templates because it supports Unicode. We need to ensure that we choose the proper font and direction, that is from right to left.
<fo:block font-family=”Arial” font-size=”12pt” text-align=”right” direction=”rtl”> هذا نص عربي في قالب المتقدم</fo:block>
- <fo:block>: A formatting object that acts as a block container for text. It can contain text or other blocks.
- font-family=”Arial”: It’s important to specify a font that supports Arabic characters.
- font-size=”12pt”: Change the size of the text as needed.
- text-align=”right”: Aligns the text to the right, which is typical for Arabic.
- direction=”rtl”: Sets the text direction to right-to-left, which is essential for properly displaying Arabic text.
Static values can be given to PDF Templates in this way.