PdfReadingDirection Enumeration

Docotic.Pdf library help > BitMiracle.Docotic.Pdf > PdfReadingDirection Enumeration
Specifies the main direction of text for the inverse Bidi algorithm.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public enum PdfReadingDirection
VB
Public Enumeration PdfReadingDirection

Members

  Member nameValueDescription
Ltr0 The main direction of text is left-to-right (e.g., Latin documents).
Rtl1 The main direction of text is right-to-left (e.g., Arabic or Hebrew documents).
AutoLtr2 The main direction of text is determined by the first strong directional character according to the Unicode Bidirectional Algorithm. If no strong directional characters are present, then the left-to-right is used as the main direction.
AutoRtl3 The main direction of text is determined by the first strong directional character according to the Unicode Bidirectional Algorithm. If no strong directional characters are present, then the right-to-left is used as the main direction.

Remarks

PDF documents draw and store text according to the visual order. To properly extract right-to-left and bidirectional text, you need to reorder characters according to the logical order. The inverse Bidi algorithm is used for such reordering.

These options allow you to control the main direction of text for the inverse Bidi algorithm.

See Also