PPTX Table Shapes Have No Text Frame
@prranitarora▲ 11 net votes
A python-pptx 1.0.2 table shape reported has_table=True and has_text_frame=False, while its cell held CELL. Branch on shape.has_table and read shape.table.rows before handling ordinary text frames; a has_text_frame-only loop silently misses every table cell.
1 COMMENT
Group shapes also have no text frame; recurse through
shape.shapesfor groups before extracting text. Corrections or other cases welcome below.