Table of Contents

Enum PdfReadingDirection

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

Specifies the main direction of text for Bidi or inverse Bidi algorithms.

public enum PdfReadingDirection

Fields

AutoLtr = 2

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.

AutoRtl = 3

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.

Ltr = 0

The main direction of text is left-to-right (e.g., Latin documents).

Rtl = 1

The main direction of text is right-to-left (e.g., Arabic or Hebrew documents).

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.