{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "datalab-to-marker--convert-a-pdf-to-markdown-with-marker",
 "repo": "datalab-to/marker",
 "repo_url": "https://github.com/datalab-to/marker",
 "repo_slug": "datalab-to-marker",
 "title": "Convert a PDF to clean markdown",
 "page_title": "How to convert a PDF to clean markdown with Marker",
 "summary": "Run marker_single on one PDF and get markdown with tables and equations preserved.",
 "who": "A researcher or analyst with a paper or report they want as editable text.",
 "problem": "Copying text out of PDFs breaks tables, math and reading order.",
 "outcome": "A markdown file of the document in the output folder you choose.",
 "steps": [
  "Install with `pip install marker-pdf`",
  "Run `marker_single /path/to/file.pdf` to convert one file",
  "Add `--output_format` and `--output_dir` to choose format and folder",
  "Open the markdown and check tables and equations"
 ],
 "agent_prompt": "Using datalab-to/marker, install it with `pip install marker-pdf`, run `marker_single /path/to/file.pdf --output_format markdown --output_dir ./out` on <my PDF>, and summarise any pages where the output looks wrong.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Beginner",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "Balanced mode needs a GPU for best speed; CPU runs default to fast mode.",
 "category": "Data and analytics",
 "tags": [
  "Data and analytics"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.10+ and PyTorch",
  "pip",
  "A GPU is best, CPU and Apple Silicon also work in fast mode"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "download",
   "notice": "First run downloads model weights and may spawn a local inference server; expect a large download."
  },
  {
   "tag": "license",
   "notice": "Model weights are free for research, personal use and small startups; check the license for commercial use."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/datalab-to-marker/convert-a-pdf-to-markdown-with-marker/",
 "md": "https://dedupedai.com/use-cases/datalab-to-marker/convert-a-pdf-to-markdown-with-marker/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/datalab-to-marker--convert-a-pdf-to-markdown-with-marker.json",
 "api_version": "v1"
}
