def get_text_from_docx(doc):
    """Get text from docx.Document object.
    More precisely, 'text' will be the newline-separated concatenation of the .text attributes of every paragraph.
    You can got a document object from a file path of pointer f by doing:
        import docx  # pip install python-docx
        doc = docx.Document(f)
    """
    fullText = []
    for para in doc.paragraphs:
        fullText.append(para.text)
    return "\n".join(fullText)