PDFium Delphi Component Docs

TPdfReadableContentOptions.RightToLeft

Unit: PDFium
Options := TPdfReadableContentOptions.Default;
Options.HeuristicOrder := rhoColumns;
Options.RightToLeft := True;
Pdf.ReadableContentOptions := Options;

Defaults to False; takes effect only with HeuristicOrder at rhoColumns and makes the geometric ordering progress right-to-left

The right column is read before the left column at every split, and objects that share a vertical position within one column are ordered by descending horizontal center instead of ascending

Use it for Hebrew, Arabic and other right-to-left document layouts where two-column print order starts at the right edge of the page

The option never rewrites text direction or glyph shaping — it only chooses the reading sequence of columns and tied objects; bidi shaping of the text itself remains the text layer's responsibility

HeuristicOrderApplied and DetectedColumns report the same facts as left-to-right ordering, and the same geometry, object-count, recursion-depth and work-visit bounds retain the original native order on failure