Releases
v0.4.0
v0.4.0: Natural Reading Order (XY-Cut), Sub-Page VLM Triage & Native MCP Server
Compare
Sorry, something went wrong.
No results found
What's Changed in v0.4.0
1. 📖 Natural Reading Order via Recursive XY-Cut
Implemented the deterministic Recursive XY-Cut algorithm in pure Rust (src/engine/doc.rs).
Automatically cuts horizontal whitespace bands (Y-cut) for paragraphs and vertical whitespace gutters (X-cut >= 16.0 pt) for multi-column documents and sidebars.
Resolves the multi-column interleaving defect without external C/C++ dependencies.
Configurable via ParserOptions.reading_order: "natural" (default) or --reading-order natural CLI flag.
2. 👁️ Sub-Page VLM Triage (is_complex_layout & complexity_score)
Geometric complexity metric S(R) in [0.0, 1.0] based on vector drawing overlap, span collisions, and borderless tabular grid fragmentation.
When S(R) >= 0.45, is_complex_layout is flagged on SpatialBlock, SpatialChunk, and SpatialPage.
Enables AI agents to crop and triage only ambiguous sub-page bounding boxes to Vision-Language Models (VLMs), saving 80%+ image tokens.
Cross-platform models updated in Go (bindings/go/rasgapdf.go) and C# (bindings/csharp/RasgaPdf.cs).
3. 🔌 Native Model Context Protocol (MCP) Server (rasgapdf mcp)
Built-in zero-dependency stdio JSON-RPC 2.0 MCP server for seamless integration with Claude Desktop , Cursor , Antigravity , and AI agents.
4 native tools exposed: parse_pdf, search_document, get_chunks, and get_triage.
4. 📚 Comprehensive Documentation & Self-Updating Directive
Added Section 8 to AGENTS.md: Autonomous Self-Updating Documentation Directive .
Synchronized README.md, docs/SCHEMA.md, llms.txt, llms-full.txt, and WebAssembly binaries.
You can’t perform that action at this time.