pdfSetTextLinePrinterMode

Set text extraction mode to "line printer".
void pdfSetTextLinePrinterMode(int linePrinter)
If linePrinter is non-zero, sets the text extraction mode to "line printer". In line printer mode, text is placed into a grid of fixed-width, fixed-height cells. This is particularly well suited for extracting text from PDF files created from line printer-style text, i.e., with a single monospaced font. By default, XpdfText will attempt to compute an appropriate character pitch and line spacing, but those can also be explicitly provided - see pdfSetTextFixedPitch and pdfSetTextFixedLineSpacing.

Only one mode, from pdfSetTextReadingOrderMode, pdfSetTextPhysicalLayoutMode, pdfSetTextSimpleLayoutMode, pdfSetTextSimple2LayoutMode, pdfSetTextTableLayoutMode, pdfSetTextLinePrinterMode, or pdfSetTextRawMode can be selected.

This setting is global - it applies to all PDF handles.

C:
pdfSetTextLinePrinterMode(1);
pdfSetTextReadingOrderMode
pdfSetTextPhysicalLayoutMode
pdfSetTextSimpleLayoutMode
pdfSetTextSimple2LayoutMode
pdfSetTextTableLayoutMode
pdfSetTextRawMode