Skip to content

Instantly share code, notes, and snippets.

@zaxklone
Created December 29, 2014 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zaxklone/5c47d800c2caad67d22a to your computer and use it in GitHub Desktop.
Save zaxklone/5c47d800c2caad67d22a to your computer and use it in GitHub Desktop.
test docx
from sys import argv
from docx import Document
def main():
f = open(argv[1])
document = Document(f)
print dir(document)
#print document.sections[0].start_type
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment