THPDFHeadlessTextDirection

THPDFHeadlessTextDirection = (htdAuto, htdLeftToRight, htdRightToLeft);

Controls paragraph base direction for HPDFResolveHeadlessTextOrder and HPDFShapeHeadlessTextSpan

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

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