PPTX to Text
Extract readable text from PowerPoint (.pptx) presentations using MinerU. MinerU outputs Markdown as the closest format to plain text.
Install
npm install -g mineru-open-api
# or via Go (macOS/Linux):
go install github.com/opendatalab/MinerU-Ecosystem/cli/mineru-open-api@latest
Quick Start
# Extract text from .pptx to stdout (no token required)
mineru-open-api flash-extract slides.pptx
# Save to file
mineru-open-api flash-extract slides.pptx -o ./out/
# Extract specific slides
mineru-open-api flash-extract slides.pptx --pages 1-5
# JSON output contains text fields per slide (requires token)
mineru-open-api extract slides.pptx -f json -o ./out/
Authentication
No token needed for flash-extract. Token required for extract:
mineru-open-api auth # Interactive token setup
export MINERU_TOKEN="your-token" # Or via environment variable
Create token at: https://mineru.net/apiManage/token
Capabilities
- Supported input: .pptx (local file or URL)
flash-extract: no token, Markdown output to stdout (max 10 MB / 20 pages)- For truly plain text: use
extract -f jsonand read text fields from JSON output - Language hint with
--language(default:ch, useenfor English) - Slide range with
--pages(e.g.1-5)
Notes
- MinerU has no
-f textformat; Markdown output is the closest to plain text - For
.ppt(legacy format), useppt-extractinstead - Output goes to stdout by default; use
-o <dir>to save to a file or directory - All progress/status messages go to stderr; document content goes to stdout
- MinerU is open-source by OpenDataLab (Shanghai AI Lab): https://github.com/opendatalab/MinerU