# file2text

read file and convert it's content to  text, this modulde suport a lot of file types

## Docx file
## Excel file
## powerpoint file
```
python-pptx
```
## text file
## Pdf file
## Epub file
## Mobi file

## CHM file
1. Install libchm (if not already installed):

On Ubuntu/Debian:

```
sudo apt install libchm-bin libchm-dev
```

On macOS (with Homebrew):

```
brew install chmlib
```

2. Install Python binding:

Unfortunately, python-chm is not always available via PyPI. Instead, you might need to install it via your system package manager or from source.

On Ubuntu/Debian:

```
sudo apt install python3-chm
```

If using macOS, you might need to build a wrapper manually (let me know if you need help with that).
📝 Notes:

    This extracts plain HTML text. You can clean it up using BeautifulSoup if needed.

    CHM files can contain a huge number of pages. Consider filtering by file path if needed.

Would you like a version that returns cleaned text only (no HTML tags)?
