Skip to content

RayoPDF 0.4.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 23:19
· 245 commits to master since this release

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=pipe writes every table as a GitHub pipe table (a spanning cell's text in its first cell), --quotes=ascii writes typographic quotation marks as ' and "; --tables=html sets 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).