THPDFHeadlessTextDirection

THPDFHeadlessTextDirection = (htdAuto, htdLeftToRight, htdRightToLeft);

Controls the paragraph base direction for HPDFResolveHeadlessTextOrder and HPDFShapeHeadlessTextSpan

htdAuto infers the direction from the paragraph, htdLeftToRight supplies an explicit left-to-right base and htdRightToLeft supplies an explicit right-to-left base

An explicit base keeps the original paragraph direction when a wrapped line starts with numbers, punctuation or text from the opposite direction