getPrimaryDirection

Get the primary writing direction of the word list.
getPrimaryDirection([out, retval] int *dir)
This function returns the primary writing direction of the word list constructed by the most recent call to buildWordList. The result will be +1 for left-to-right scripts, and -1 for right-to-left scripts. The primary writing direction is determined by counting the number of left-to-right and right-to-left characters, and choosing the larger count.

To get the writing direction of individual words, call getWordDirection.

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
getWordDirection