setPhysicalLayoutTextMode

Set physical layout mode for text extraction.
setPhysicalLayoutTextMode()
Set the text extraction mode to "physical layout". In physical layout mode, XpdfViewer maintains (as best as possible) the original physical layout of the text.

This is the default setting.

VB:
viewer.setPhysicalLayoutTextMode()
setTableLayoutTextMode