PdfReadingDirection Enumeration

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

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 add right-to-left and bidirectional text to PDF, you need to reorder characters according to the visual order. The Bidi algorithm is used for such reordering.

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 Bidi or inverse Bidi algorithms.

See Also