Convert Office files (.docx, .pptx, .xlsx, .pdf) to Markdown using MarkItDown
Project description
tomd-cli
Convert Office files to Markdown using MarkItDown.
Supported formats
.docx(Word).pptx(PowerPoint).xlsx(Excel).pdf
Installation
# pipx (recommended)
pipx install tomd-cli
# or pip
pip install tomd-cli
Usage
CLI
# Convert a single file
tomd document.docx
# Specify output path
tomd document.docx -o output.md
# Convert all files in a directory
tomd --dir ./documents/
# Convert directory with custom output
tomd --dir ./documents/ -o ./markdown/
Python API
from tomd import convert_file, convert_dir
# Single file
output_path = convert_file("document.docx")
output_path = convert_file("document.docx", "output.md")
# Directory
output_paths = convert_dir("./documents/")
output_paths = convert_dir("./documents/", "./markdown/")
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tomd_cli-0.1.3.tar.gz
(15.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
tomd_cli-0.1.3-py3-none-any.whl
(13.1 kB
view details)
File details
Details for the file tomd_cli-0.1.3.tar.gz.
File metadata
- Download URL: tomd_cli-0.1.3.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3e08505e716fba13f9e3f3f11bda9437ca4b89418bb1c007b46d488a3073787
|
|
| MD5 |
19d6b2802d0f44817641cd53d5b83979
|
|
| BLAKE2b-256 |
173402db65cc02acb2f51c39baf050573ce3aeba48bdeb460b7446cfac0fca29
|
File details
Details for the file tomd_cli-0.1.3-py3-none-any.whl.
File metadata
- Download URL: tomd_cli-0.1.3-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9efec44d17b6bd154a9aff36e50f7375e8dcf19d3d3cf4efb2fd505149a86232
|
|
| MD5 |
d97ee8ffbe986d09b6dd35fa756cbdf7
|
|
| BLAKE2b-256 |
18c12e0398b978026f034ad043212f77df43eccb36454450f61822eaafedcb8c
|