17. How Do I Create a Document With a Text Direction of Right-to-Left?

PDFreactor automatically analyzes the document to handle both left-to-right and right-to-left text correctly. However the base direction of the document defaults to left-to-right. You can set it to right-to-left by specifying the dir attribute of the root element as in the following example:

<html dir="rtl">

Note:

You can override the base direction for certain elements:

div.english {
  direction: ltr;
}

You can override the automatically selected text direction using CSS:

span.forcertl { 
  unicode-bidi: bidi-override; 
  direction: rtl; 
}