Marker
$ marker_single Official Low RiskMarker (marker_single, from marker-pdf by Datalab) uses vision and layout deep-learning models to convert PDFs, images, and Office documents into clean Markdown, HTML, structured JSON (--output_format json), or flattened chunks. It optionally boosts table and formula accuracy with --use_llm.
pip install marker-pdf marker_single runs local GPU/MPS/CPU inference directly over large PDF files and outputs structured JSON/Markdown directories.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Non-interactive CLI with --output_format json (plus markdown, html, chunks) and --output_dir, though it writes files rather than stdout.
- Supports
--output_format jsonand--output_dir - No interactive prompts
Runs locally unless --use_llm is explicitly enabled; GPL-3.0 + model weight restrictions require compliance review for commercial redistribution.
- Local-only by default;
--use_llmis strictly opt-in - GPL-3.0 code license and model weight usage thresholds
Requires PyTorch and downloads multi-gigabyte Surya/Marker model weights on first execution.
- Heavy GPU/PyTorch and model weight download footprint
High-accuracy extraction for scientific PDFs, equations, tables, and RAG-ready chunks JSON.
- Supports
markdown,json,html, andchunksoutput formats
Official Datalab repository (datalab-to/marker) under GPL-3.0 with active development.
- Official
datalab-to/markerrepository
Clear README usage documentation and --help flag coverage.
- Documented flags and examples in upstream README
Security, Auth & Guardrails
Offline by default; enabling --use_llm reads external LLM API keys (e.g. GOOGLE_API_KEY or OPENAI_API_KEY) from env vars.
GPL-3.0 open-source code with restricted commercial weight terms; --use_llm incurs external LLM API token fees.
# Marker CLI (marker_single) Agent Rules - Always specify `--output_dir <dir>` and `--output_format json` (or `markdown`/`chunks`). - Do not pass `--use_llm` unless the user explicitly approves sending document pages to an external LLM API. - Check GPU/RAM availability before running large multi-hundred-page PDFs.
Agent-Ready Command Recipes
Safe Read-Only Queries
marker_single --help
Lists supported --output_format options, page ranges, and LLM enhancement flags.
Controlled Writes & Previews
marker_single input.pdf --output_format json --output_dir ./marker_out
Extracts layout blocks and text into JSON files inside ./marker_out without external API calls.
Strengths for Agents
- + Supports
--output_format jsonandchunkstailored for downstream RAG ingestion. - + High accuracy on complex scientific layouts, equations, and multi-column PDFs.
Caveats & Pitfalls
- ! GPL-3.0 license and model weight commercial restrictions apply.
- ! Heavy PyTorch and model-weight footprint causes slow cold starts on CPU-only machines.