Set text extraction mode to "table layout".
[read/write property] tableLayoutMode([out, retval] VARIANT_BOOL *tableLayout) tableLayoutMode([in] VARIANT_BOOL tableLayout)
Setting this property to true sets the text extraction mode to "table layout". This is similar to physical layout mode (see
physicalLayoutMode), but optimized for tabular data, with the goal of keeping rows and columns aligned (at the expense of inserting extra whitespace).
pdf.tableLayoutMode = True