AutoDetectRtlDirection

WordProcessingLoadOptions.AutoDetectRtlDirection property

When true (default), paragraphs and runs whose text is dominantly right-to-left will have their bidi flags repaired before conversion. This matches the heuristic Microsoft Word and LibreOffice apply and fixes rendering of Arabic/Hebrew documents produced by generators (notably Google Docs) that emit OOXML without <w:bidi/> and with <w:rtl w:val=“0”/> on runs that contain only RTL script. Set to false to preserve strict OOXML interpretation of the source markup.

public bool AutoDetectRtlDirection { get; set; }

See Also