Python-docx not recognizing a table

572 views Asked by At

I have converted a PDF document to word document using ABBYY finereader. The table present in the word document is not recognized by python-docx package Below is the table format: Sample table

Below is my piece of code:

from docx.api import Document
if __name__=='__main__':
    document = Document('../Data/question.docx')
    table = document.tables
    num_of_tables = (len(table))
    print('num_of_tables ',num_of_tables)

The output is

num_of_tables: 0

Kindly let me know your suggesstions

0

There are 0 answers