Skip to main content

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.2.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tomd_cli-0.1.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file tomd_cli-0.1.2.tar.gz.

File metadata

  • Download URL: tomd_cli-0.1.2.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for tomd_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c4dc67c719158a99252d8c029a188f53f1f5afe1117c72abea6d580ba05caa48
MD5 e17892f63f367b817035a281e9be4fd1
BLAKE2b-256 425a2b63d9eab84d0e9de46f64e5dc3f08e1dbbc720d8934ac27e44f1b5a7c53

See more details on using hashes here.

File details

Details for the file tomd_cli-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: tomd_cli-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for tomd_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1818a198bc1aba854c66ba52948152e20d9f06246202da1a581ccc89639260bd
MD5 5b869b3839e993da8430750a29256149
BLAKE2b-256 3f0821085a27372e3d4390f867afa06cfafc78dae1f4f07a726e03d83ef29848

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page