This repository has been archived by the owner. It is now read-only.
Please sign in to comment.
- Added example-extracttext.py - a simple 2 line example of how to ex…
…tract text from a docx document - example.py is now example-makedocument.py
- Loading branch information...
Showing with 27 additions and 8 deletions.
|@@ -0,0 +1,20 @@|
|+This file opens a docx (Office 2007) file and dumps the text.|
|+If you need to extract text from documents, use this file as a basis for your work.|
|+Part of Python's docx module - http://github.com/mikemaccana/python-docx|
|+See LICENSE for licensing information.|
|+from docx import *|
|+if __name__ == '__main__':|
|+ document = opendocx(sys.argv)|
|+ print('Please supply a filename. For example:')|
|+ print(''' example-extracttext.py 'My Office 2007 document.docx' ''')|
|+ ## Fetch all the text out of the document we just created|
|+ print getdocumenttext(document)|