Check out the structure of the Document object here:
Source code for docx.api
For example, if you want to get the property "paragraphs":
doc = Document('test.docx')
paragraphs = doc.paragraphs()
I hope this will help.
EDIT: I have found this snippet in the python-docx's gitHub repository and edited it a little here:
document = docx.Document(filename)
docText = '\n\n'.join([
paragraph.text.encode('utf-8') for paragraph in document.paragraphs
])
print docText
The join() function receives a list of strings encoded in UTF-8 from the paragraphs in the array returned by paragraphs property. So the result would look like:
paragraph 1
paragraph 2
paragraph 3
It looks like this works, but it doesn't print tables, headers or footers.
EDIT: This link is the main index for all documentation about python-docx:
python-docx 0.7.4 documentation