CLI for RapidAI/RapidDoc — parse PDF/Office documents to Markdown/JSON/Word/HTML
Project description
rapiddoc-cli
A command-line interface for RapidAI/RapidDoc — parse PDF / image / Office documents into Markdown / JSON / Word / HTML with a single command.
RapidDoc is a high-performance document parsing pipeline (MinerU fork, VLM removed, ONNX-based) that runs on CPU — no GPU required.
Install
# Recommended: isolated environment (doesn't pollute your system Python)
uv tool install rapiddoc-cli
# Or with pip
pip install rapiddoc-cli
Both expose the rapiddoc command. The first run downloads ONNX models (~50–100 MB) to a cache directory; subsequent runs reuse them.
Usage
rapiddoc paper.pdf # → paper.out.md (default: Markdown)
rapiddoc report.pdf -f json # → report.out.json
rapiddoc notes.docx -f word # → notes.out.docx (Office native parsing)
rapiddoc scan.png -f html # → scan.out.html
rapiddoc book.pdf -o book.md --lang en # English OCR + custom output path
rapiddoc scan.png --no-formula # skip formula recognition (faster)
Options
rapiddoc <input> [options]
-o, --output <path> Output file path
-f, --format <md|json|word|html> Output format (default: md)
--lang <ch|en|...> OCR language (default: ch)
--no-formula Disable formula recognition
--no-table Disable table recognition
-h, --help Show help
Supported inputs
| Type | Formats | How it's parsed |
|---|---|---|
.pdf |
Model pipeline (OCR + layout + formula + table) | |
| Images | .png .jpg .jpeg .bmp .tiff |
Model pipeline |
| Office | .docx .pptx .xlsx |
Native parsing (no models, very fast) |
| Legacy Office | .doc .ppt .xls |
Converted to modern format first |
Platform support
| Platform | Supported | Notes |
|---|---|---|
| macOS (Apple Silicon, M-series) | ✅ | OpenVINO is auto-skipped on ARM; runs on ONNX Runtime. No config needed. |
| Linux x86_64 | ✅ | OpenVINO used for OCR (fastest on CPU); other stages use ONNX Runtime. |
| Windows x86_64 | ✅ | Same engine selection as Linux x86_64. |
| macOS (Intel x86_64) | ❌ | Not supported. See note below. |
| No GPU required | — | The whole pipeline runs on CPU. There is no CUDA/MPS path. |
Why not Intel Mac?
This is not a limitation of rapiddoc-cli itself — it's an upstream constraint:
the required dependencies onnxruntime and openvino (2025.1+) no longer publish
wheels for macOS x86_64. As a result pip install rapiddoc-cli will fail on Intel
Macs because the underlying model-inference libraries can't be installed.
Intel Mac users can run rapiddoc-cli inside a Linux container/VM (e.g. Docker
with a Linux image, or a Linux cloud VM), where x86_64 wheels are fully supported.
How it works
rapiddoc-cli is a thin wrapper around the rapid-doc Python package. It:
- Initializes a
RapidDocengine (OCR, layout, formula, table models loaded on demand) - Parses the input into an intermediate
middle_jsonrepresentation - Renders the requested output format:
- Markdown / JSON: produced directly by the engine
- Word / HTML: Markdown is generated first, then converted via
markdown_to_docx/markdown_to_html(pypandoc / markdown-it-py)
License
Apache-2.0 (same as upstream rapid-doc).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file rapiddoc_cli-0.1.1.tar.gz.
File metadata
- Download URL: rapiddoc_cli-0.1.1.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58807017ff3619d8f10aa6f6768d5097f68c8b9affa8c68b778721fe8800e5eb
|
|
| MD5 |
3befe35d1b55f93c5fee1e3dc214d7f1
|
|
| BLAKE2b-256 |
8d6f9577b272c4f7bfc18c50ae99d20bdc6517b2ebe77acd012a7ba7f19c70a0
|
File details
Details for the file rapiddoc_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: rapiddoc_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f66b7392ab3beb56124539132d70b6dc229070a00378595ae92b77a163da5de1
|
|
| MD5 |
a4320b55e1cd455c4a09161303dfc7ef
|
|
| BLAKE2b-256 |
0ba2f2730dba99ca344485c6d54208d9f28a4b45d1ce87fccb47a014f34fefb1
|