Repository navigation
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.