tables = extract_tables('attention112.docx') with open(tables, 'rb') as tf: red = tf.read() print(red)