Set text extraction mode to "physical layout".
void pdfSetTextPhysicalLayoutMode(int physLayout)
physLayoutis non-zero, sets the text extraction mode to "physical layout". XpdfText will maintain, as much as possible, the original text layout, including columns, hyphenation, etc.
This setting is global - it applies to all PDF handles.