Repository navigation
Releases
RayoPDF 1.2.0
RayoPDF 1.2.0 stops losing the text of PDF forms and annotations, writes more of a document in
JSON, adds HTML and plain-text output, and runs on Linux arm64 and macOS, where it writes the same
bytes as on Linux x64.
New
- Form fields and annotations as text. Values of filled form fields and the text of FreeText
annotations are written where they appear on the page; check boxes and radio buttons become
- [x]and- [ ].--annotations=all|links|nonechooses what is read (allis the default;
linksgives 1.1's output). XFA forms whose fields cannot be read say so in a comment. - JSON (schema 1, new keys only):
--json-detail=lines|wordsfor each block's lines and words
with their boxes; the outline with each entry's page; formfields;annotations
(highlights, comments, FreeText) with the text they mark; per page itslabelandlinks;
metadata.language; a blockrolefor captions, formulas, page headers, footers and numbers. - Output formats:
--format=htmland--format=text; chunks with--chunk-overlap=Nand
--chunk-by=page. - Standard input:
rayopdf --convert - out.md < in.pdf. - Python: a Haystack component,
rayopdf.integrations.haystack.RayoPdfToDocument
(pip install "rayopdf[haystack]"). - Platforms: Linux arm64 (
rayopdf-1.2.0-linux-arm64-static.tar.gz, amanylinux_2_28_aarch64
wheel and the C++ library) and macOS 11+ on Apple silicon and 10.15+ on Intel
(rayopdf-1.2.0-macos-arm64.tar.gz,rayopdf-1.2.0-macos-x64.tar.gz, wheels and libraries).
The macOS programs are not signed: after a browser download, run
xattr -d com.apple.quarantine rayopdf.
Better
- Tables: title and section rows found from the text span the table in HTML and JSON; section
and continuation lines in a table's first column are read as such. opendataloader-bench TEDS
0.934 → 0.937, OmniParseBench tables 0.602 → 0.620 (development set, with the OCR add-on). - Monospace fonts named Typewriter or Cousine, or with Mono in their name, are code.
- The WebAssembly module is 13.5 % faster;
--serveholds 20 % less memory.
Changed output
Documents with filled forms or FreeText annotations now carry their text (--annotations=links
leaves it out, as 1.1.0 did). The table, monospace and sort-order changes alter a small share of
other documents: 154 of the 13,195 Markdown outputs of this release's benchmark runs differ from
1.1.0's, and some tables gain spans in HTML and JSON.
Quality, speed and robustness: record,
release check.
SHA256SUMS lists every package's checksum. The OCR add-on's archives (Linux x64 and Windows x64)
are attached separately.
RayoPDF 1.1.0
Core archives of commit 619071e, built by the Release workflow; SHA256SUMS lists their checksums. The OCR add-on's archives are built and attached by hand (CONTRIBUTING.md, Versions and releases).
RayoPDF 1.1.0: a faster fresh process (record, release check, benchmarks)
The converter of 1.0.0, with byte for byte the same output on every benchmark, made faster as a fresh process:
- Speed: a one-page PDF in 0.883 ms instead of 0.924 ms, start to exit (median over opendataloader-bench's 200 pages), with 132 page faults instead of 152; the heaviest of those pages, a 4 MB vector drawing, in 14.9 ms instead of 18.1 ms; 2,228 pages a second instead of 2,203 in a running process (the 1.0.0 binary measured alongside on 2026-11-25).
- How: the base encodings' texts and the BMP's UTF-8 table are built at compile time, a one-shot conversion frees each stage's storage for the stages after it, inflated streams of 1 MiB or more go to huge pages, two hash maps became arrays and an interned table, and JSON numbers are written without
snprintf(performance.md). - OCR add-on: only the ncnn engine it has always shipped. The options of backends that never shipped (
--engine,--tesseract,--lang,--tier medium) are gone, without a deprecation period; the models are 1.0.0's. - Tried and refused: a retrained page-furniture model, a table-run model and a WebAssembly SIMD build; each missed its gate (record).
- Python: the PyPI description's images and links point at the release's files.
The container image: ghcr.io/butterski/rayopdf:1.1.0 (digest sha256:aa5c6d7c2fb3134f654162b633c7beef6c247d786b3406e154c845e9c16c6ab5).
RayoPDF 1.0.0
Core archives of commit 9b71ea2, built by the Release workflow; SHA256SUMS lists their checksums. The OCR add-on's archives are built and attached by hand (CONTRIBUTING.md, Versions and releases).
RayoPDF 1.0.0, the first stable release (record, release check, benchmarks)
Fast, local PDF to Markdown and JSON from one small executable: no GPU, no Python or Java runtime, no models to download. 1.0.0 is the converter of 0.5.0, byte for byte, released as the first stable version:
pip install rayopdf(Linux x64, Windows x64); the npm package, the C++ library and the container imageghcr.io/butterski/rayopdf:1.0.0as before.- New documentation: a user-first README, guides for the command line, output formats, OCR add-on, Python, JavaScript, C and C++, the container and AI agents, and a benchmark summary with every tool, version and date.
- Where it stands: opendataloader-bench 0.944 with the benchmark's conventions (0.917 default); READoc arXiv on the test set 0.893 text, 0.719 headings, 0.730 tables with READoc's conventions; olmOCR-bench arXiv math 0.860 with
--math=latex; a one-page PDF in under 1 ms as a fresh process, 2,207 pages a second on one core in a running process. - Since 0.4.0:
--figure-text=drop,--small-caps=keep,--tables=pipe-latex; LaTeX mode by font codes; table, heading, list, footnote and furniture rules (0.5.0 record).
The container image: ghcr.io/butterski/rayopdf:1.0.0 (digest sha256:8d7ad8abcdb7b0d7e47df9232813033c734baad536bcbebd57b5717cadae3522).
RayoPDF 0.5.0
Core archives of commit 48fd52e, built by the Release workflow; SHA256SUMS lists their checksums. The OCR add-on's archives are built and attached by hand (CONTRIBUTING.md, Versions and releases).
What is new (record, release check: every item of the release bar holds)
--figure-text=dropleaves out a figure's own text (tick labels, axis titles, legends, a diagram's labels) that does not read as prose;--small-caps=keepwrites small-capitals headings as printed;--tables=pipe-latexwrites pipe tables for readers that take cells through LaTeX. Opt-in conventions; the default output stays faithful to the page.- LaTeX mode (
--math=latex): formulas read by their fonts' codes (mathabx, TeX's math fonts, OAMathSymbols, newtx, Symbol), stacked fractions and bars, radicals over fractions, composed relations, extensible arrows, operator names, accents seated over their glyph, bold letters as\mathbf, and the spellings arXiv sources use. olmOCR arXiv math 0.721 → 0.860. - Tables, headings, lists, footnotes and page furniture: header rows told by rules, levels and centred labels; drop caps; numbered, centred and italic titles; printed list markers kept; footnote references in table cells; the edge-row model retrained twice. opendataloader-bench 0.941 → 0.944 with its conventions (kordoc: 0.939); READoc arXiv tables 0.636 → 0.730 with READoc's (docling: 0.656); olmOCR headers and footers 0.850 → 0.891, multi-column 0.710 → 0.762; DocLayNet lists 0.528 → 0.687 and footnotes 0.506 → 0.711.
- Text: a dash ending a line joins the next line's word, compound hyphens stay, upright punctuation after an italic glyph stays in its word, insets wrapped by two columns are read after their column.
- Speed: 4 % fewer instructions than 0.4.0 on odl (10 % on SafeDocs, 8 % in LaTeX mode) though every rule since landed; warm 2,207 pages/s and fresh 0.912 ms on odl, within 0.6 % of 0.4.0's.
The container image: ghcr.io/butterski/rayopdf:0.5.0 (digest sha256:67a64bdf310549fe37746a460066df007b769b59652eda0752ebf8e81ebe7239).
RayoPDF 0.4.0
Core archives of commit a0da08e, built by the Release workflow; SHA256SUMS lists their checksums. The OCR add-on's archives are built and attached by hand (CONTRIBUTING.md, Versions and releases).
What is new (record, release check)
--tables=pipewrites every table as a GitHub pipe table (a spanning cell's text in its first cell),--quotes=asciiwrites typographic quotation marks as'and";--tables=htmlsets a space between a row's tags and around each cell's text. Opt-in conventions; the default output stays faithful to the page.- The first small model in the core (M9): gradient-boosted trees trained on DocLayNet's train pages and compiled into the binary take running heads and footers the rules keep at a page's edge; the rows they take still count in every page statistic, and only the blocks they alone make are left out. No model files, no download.
- Tables: rules drawn cell by cell (ConTeXt) part columns set a word space apart, cells set to the middle of their row (HTML's default) stay one row, a row label centred between two rows splits no row, a table continued right under itself is joined, a fraction bar is no table, and emphasis over a lone body cell is kept. Synthetic tables (TEDS) 0.912 → 0.961, the holdout producer 0.722 → 0.792.
- opendataloader-bench 0.936 → 0.941 with its own conventions (kordoc: 0.939); READoc arXiv tables 0.618 → 0.636 with READoc's (
--math=latex --tables=pipe); DocLayNet page furniture +0.002 on both splits. --math=latex: formulas whose accents the rebuild could not attach are read again as a minimum-cost tree of their glyphs; Greek prose with accents stays text. olmOCR arXiv math 0.7202 → 0.7205.- Speed 1.1 % below 0.3.0's (warm 2,188 pages/s, fresh 0.906 ms on odl); the release binary is the bytes that were timed but for the version string.
The container image: ghcr.io/butterski/rayopdf:0.4.0 (digest sha256:57b31a2bf9cd0f0db0954f2778807912bbf8993e1f3a49b0dcba8f573faf190e).
RayoPDF 0.3.0
Core archives of commit 18bf2a0, built by the Release workflow; SHA256SUMS lists their checksums. The OCR add-on's archives are built and attached by hand (CONTRIBUTING.md, Versions and releases).
What is new (record, release check)
--plain(no inline markup),--tables=html(every table as HTML) and--furniture=keep(running headers, footers and page numbers kept as text, never as headings): the conventions readers and benchmarks disagree on, opt-in; the default output stays faithful to the page.--format=chunks: JSON Lines of heading-led chunks with their heading path, pages and boxes, for retrieval.--format=inspect: one HTML file that draws each page's lines and blocks in reading order, removed furniture struck through.- Python wheels (
rayopdf-0.3.0-py3-none-manylinux_2_28_x86_64.whl,rayopdf-0.3.0-py3-none-win_amd64.whl;import rayopdf, LangChain and LlamaIndex loaders) and an npm package (rayopdf-0.3.0.tgz, WebAssembly for browsers and Node.js 18+) over a new C ABI (include/rayopdf/rayopdf_c.h). Attached here only, not published to PyPI or npm. - Titles, heading levels and page numbers read better: opendataloader-bench 0.909 → 0.915 (headings 0.874 → 0.890), 0.936 with the benchmark's own conventions (
--images=none --furniture=keep --plain --tables=html); DocLayNet page furniture 0.590 → 0.595. --math=latex: a tagged formula's LaTeX alternate text, binomials, over- and undersets, horizontal braces and scripts of scripts.- Every benchmark measured in its default output and in its declared options, two new suites (DocLayNet, OmniParseBench), and a strict quality gate: no metric of any development or validation suite may fall; the steps it kept out are listed in the record. No small model met the M9 criteria; none ships.
- Speed as 0.2.0's within a point (warm 2,214 pages/s, fresh 0.900 ms on odl); the release binary is the bytes that were timed.
The container image: ghcr.io/butterski/rayopdf:0.3.0 (digest sha256:6f0fc24db8eedaf727bbb29f74bc1d4d6a6255a7ff552ad6d5c05c2420b33a8f).
RayoPDF 0.2.0
Core archives of commit 8332030, built by the Release workflow; SHA256SUMS lists their checksums. The OCR add-on's archives are built and attached by hand (CONTRIBUTING.md, Versions and releases).
What is new (record, release check)
--format=json(the document's blocks with their kinds, pages and boxes),--page-markersand--front-matter.- A C++ API:
rayopdf-lib-0.2.0-linux-x64.tar.gzandrayopdf-lib-0.2.0-windows-x64.zipholdlibrayopdf.a, its header and an example. - A container image:
ghcr.io/butterski/rayopdf:0.2.0. - An Agent Skill (
skills/rayopdf) and an MCP server (rayopdf-mcp). - Tables, page furniture and headings read better: opendataloader-bench 0.902 → 0.909 (TEDS 0.889 → 0.915); olmOCR
headers_footers0.839 → 0.849. - The OCR add-on reads an image holding a table that fills it as a Markdown table.
- A JBIG2 decoder bound found by the fuzz campaign (25 targets, 26.1 h).
The container image: ghcr.io/butterski/rayopdf:0.2.0 (digest sha256:fa9b49d2f6e75f0639d657aeece8e9670ca2d547a3028139e2981c210ddf676f).
RayoPDF 0.1.1
Core archives of commit 30b2320, built by the Release workflow; SHA256SUMS lists their checksums. The OCR add-on's archives are built and attached by hand (CONTRIBUTING.md, Versions and releases).
RayoPDF 0.1.0
The first release of RayoPDF: PDF to GitHub Flavored Markdown from one small static executable,
in about a millisecond a page.
Downloads
| archive | for |
|---|---|
rayopdf-0.1.0-linux-x64-static.tar.gz |
Linux x64: one static executable, no dependency |
rayopdf-0.1.0-windows-x64.zip |
Windows x64: rayopdf.exe |
rayopdf-ocr-0.1.0-<platform> |
the optional OCR add-on with its models, unpacked into the same folder |
rayopdf-ocr-scripts-0.1.0-<platform> |
optional: Cyrillic, Korean, Arabic, Devanagari, Tamil, Kannada for the add-on |
SHA256SUMS lists all six archives; every archive builds byte for byte the same from the tag.
Measured (one machine, AMD Ryzen 5 PRO 4650GE, 2026-11-11):
- 2,209 pages a second in a running process and 0.93 ms for a one-page PDF as a fresh process, on
one core; a long document's pages and images on up to four threads. - At or above every text-layer tool (pdftotext, markitdown, PyMuPDF, opendataloader, liteparse,
edgeparse) on every metric of opendataloader-bench, olmOCR-bench's born-digital categories, the
synthetic corpus and READoc, except READoc arXiv tables; above docling on text (NID) and
headings (MHS).
Open item: table structure on arXiv papers. READoc arXiv table_teds is 0.617, against
docling's 0.656 (PyMuPDF 0.685); every other key of the release bar holds. Tables whose body cells
span rows are written as HTML inside the Markdown.
Records: release check,
0.1.0 on the harness,
README.