Skip to main content

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 .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:

  1. Initializes a RapidDoc engine (OCR, layout, formula, table models loaded on demand)
  2. Parses the input into an intermediate middle_json representation
  3. 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).

Metadata

Release files for rapiddoc-cli 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rapiddoc-cli 0.1.1
File Size Uploaded Provenance
rapiddoc_cli-0.1.1.tar.gz 8.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for rapiddoc-cli 0.1.1
File Interpreter ABI Platform
rapiddoc_cli-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.2 kB

Release files / rapiddoc_cli-0.1.1.tar.gz

Download URL rapiddoc_cli-0.1.1.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
58807017ff3619d8f10aa6f6768d5097f68c8b9affa8c68b778721fe8800e5eb
BLAKE2b-256 checksum
How to use checksums
8d6f9577b272c4f7bfc18c50ae99d20bdc6517b2ebe77acd012a7ba7f19c70a0
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / rapiddoc_cli-0.1.1-py3-none-any.whl

Download URL rapiddoc_cli-0.1.1-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f66b7392ab3beb56124539132d70b6dc229070a00378595ae92b77a163da5de1
BLAKE2b-256 checksum
How to use checksums
0ba2f2730dba99ca344485c6d54208d9f28a4b45d1ce87fccb47a014f34fefb1
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for rapiddoc-cli 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page