v1.21.0
x402-foundation/x402v1.21.0Sep 19, 2026by abimaelmartell
Upgrading?
AI Summary
Introduces font weight metadata and fixes issues related to clipped text and PDF header parsing.
Key Highlights
- Adds `font_weight` (100..=900) to text items in Rust, Node, Python, and `pdf2md`.
- Adds opt-in `bold_from_weight` feature to positioning/region APIs.
- Fixes off-canvas labels by leaving out text painted wholly outside its clip.
- Improves PDF header detection by tolerating leading bytes before `%PDF-`.
Breaking Changes
- Rust: `TextItem` literals now require `font_weight: None` for items whose weight class is unknown.
New Features
- Font weight metadata
- Opt-in bold detection from font weight
- Clipped text filtering
- PDF header parsing improvements
Full Release Notes
Changes since 1.20.0: - Add `font_weight`, the font's 100..=900 weight class, to text items in Rust, Node, Python and `pdf2md --items-json`, with an opt-in `bold_from_weight` on the positioned-text and region APIs that reads bold from a weight of 600 or more and keeps runs of different weight as separate items (#536). - Leave out text painted wholly outside its rectangular clip, so off-canvas labels no longer leak into the surrounding text (#539). - Tolerate leading bytes before the `%PDF-` header, locating it within the first 1024 bytes as mupdf, pdfium and poppler do (#538). `bold_from_weight` is opt-in; `is_bold` and item merging are unchanged by default. **Rust migration:** `TextItem` literals need `font_weight: None` for items whose weight class is unknown. Release preparation: #546. [Full changelog](https://github.com/firecrawl/pdf-inspector/compare/v1.20.0...v1.21.0)
Related Repositories
openclaw/openclawβ
392,725
The AI that really does things. Any OS. Any Platform. The lobster way. π¦
nilbuild/developer-roadmapβ
370,103
Interactive roadmaps, guides and other educational content to help developers grow in their careers.
morluto/reaβ
361,139
Reverse engineer anything with agents, from app behavior down to native binaries.
anomalyco/opencodeβ
219,907
The open source coding agent.
n8n-io/n8nβ
208,289
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.