getWordDirection

Get the writing direction of a word.
getWordDirection([in] LONG wordHandle, [out, retval] int *dir)
This function returns the writing direction of a word (whose handle was obtained with getWord). It will return +1 for left-to-right scripts, -1 for right-to-left, and 0 for neither (certain punctuation marks).
VB6:
Dim word As Long ' make word list for page 1 pdf.buildWordList 1 ' get the primary writing direction for the page primaryDir = pdf.getPrimaryDirection For i = 0 To pdf.getNumWords - 1 word = pdf.getWord(i) wordDir = pdf.getWordDirection(word) ... Next i
buildWordList
getPrimaryDirection