← Discover
GitHub · allenai/olmocr↑ +334 today

Convert PDF documents for AI

Developed by AllenAI, olmocr is a toolkit that converts PDF documents into text formats suitable for large language models. This software facilitates data set preparation processes by providing linear processing of complex document structures.

Updates

  • August 2, 2026: Stars 18,418 → 19,259, latest release v0.4.27 (March 12, 2026).

What you get

  • Converts PDF and image formats to clean Markdown text
  • Processes equations, tables, and complex layouts in the correct reading order
  • Automatically clears header and footer information

Installation

Installing system dependencies
sudo apt-get update
sudo apt-get install poppler-utils ttf-mscorefonts-installer msttcorefonts fonts-crosextra-caladea fonts-crosextra-carlito gsfonts lcdf-typetools
Creating a Python environment
conda create -n olmocr python=3.11
conda activate olmocr

If you don't write code

Paste this into your AI agent (Claude Code · Codex · Antigravity)

I want to convert the PDF documents I have into a clean Markdown format that artificial intelligence models can easily read. Can you explain to me step by step the installation steps required for this process and the method of running it on the local GPU?

Repository: https://github.com/allenai/olmocr. Follow the official instructions in the README of this repository for setup and execution.

Before starting, check which OS we are on and if the necessary tools (e.g., Python, Node.js, Git, Docker) are installed. Install any missing ones step-by-step according to this system.

Create a new, empty folder to work in. Do not touch any files outside this folder and do not delete anything. Tell me what you are going to do in one sentence before running each command.

Tell me what I should see on the screen at the end of each step. If an error occurs, I will paste the error message to you exactly as it is, and we will fix it together.

Related dictionary terms

Who it is forIt is for researchers and developers who want to convert complex PDF documents into datasets for large language models.
LicenseApache-2.0

Links

TreScout did not build this tool · we found it in GitHub trends and wrote it up. This page describes the repository as of 2026-07-02: The star count and our text belong to that day, the repository may have changed since. Check the repository link for the current state. The introductory text was prepared with AI from the repository's own documentation, and this page was machine-translated from the Turkish original · the Turkish version prevails.