Skip to content

WordReader

class WordReader(path: str)

Overview

The WordReader class converts the word format into markdown. It is a child object from the generic IReader class.

Parameters

  • path : str
    • The path to the word file.

Attributes

  • path : str
    • The path to the word file.

Methods

def convert_to_markdown(self) -> str
Convert the word file format to a markdown string.

Usage Example

path = 'path/to/word/file.docx'
reader = WordReader(path)
markdown = reader.convert_to_markdown()