pdfSetTextSimple2LayoutMode
Set text extraction mode to "simple2 layout".
void pdfSetTextSimple2LayoutMode(int simple2Layout)
If
simple2Layout
is non-zero, sets the text extraction
mode to "simple2 layout". This is similar to simple layout mode (see
pdfSetTextSimpleLayoutMode
), but handles slightly rotated text
(e.g., OCR output) better. Like simple mode, it will only work on
pages with a single column of text.
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:
pdfSetTextSimple2LayoutMode(1);