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.3.tar.gz (15.2 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.3-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

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

Hashes for tomd_cli-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f3e08505e716fba13f9e3f3f11bda9437ca4b89418bb1c007b46d488a3073787
MD5 19d6b2802d0f44817641cd53d5b83979
BLAKE2b-256 173402db65cc02acb2f51c39baf050573ce3aeba48bdeb460b7446cfac0fca29

See more details on using hashes here.

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

Hashes for tomd_cli-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9efec44d17b6bd154a9aff36e50f7375e8dcf19d3d3cf4efb2fd505149a86232
MD5 d97ee8ffbe986d09b6dd35fa756cbdf7
BLAKE2b-256 18c12e0398b978026f034ad043212f77df43eccb36454450f61822eaafedcb8c

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