Repository navigation
RasgaPDF v0.3.1: CID Font Metrics, NF-e Layout Fixes & Multi-Platform Documentation
RasgaPDF v0.3.1 brings critical font metric precision improvements for Type0 / Identity-H CID fonts, Brazilian NF-e layout stabilization, multi-ecosystem documentation refinement, and repository hardening.
🎯 Highlights in v0.3.1:
-
CID Font Metrics & Precise Bounding Boxes:
- Direct parsing of
/DescendantFonts,/DW(Default Width), and/Wwidth arrays in Type0 / Identity-H composite fonts according to ISO 32000-1 §9.7.4. - Eliminates text clipping in preview bounding boxes for embedded TrueType/OpenType fonts (e.g.
ArialUnicodeMS,Calibri,SegoeUI).
- Direct parsing of
-
NF-e & Small Typography Layout Extraction:
- Adaptive word clustering threshold for dense invoice text (6pt–8pt fonts), preventing word amalgamation in Brazilian NF-e invoices and technical specifications.
- Improved multi-line span coalescing in table detection to distinguish true data tables from multi-column textual paragraphs.
-
Incremental Update & XRef Resilience:
- Preserved newest object versions when traversing backward cross-reference
/Prevchains withentry().or_insert(). - Added width range validation and byte bounds checking in XRef stream parsing.
- Preserved newest object versions when traversing backward cross-reference
-
Windows-1252 & Typographic Quote Normalization:
- Comprehensive character mapping for 0x80–0x9F code points (typographic en-dashes, em-dashes, curly quotes, bullet points).
-
Multi-Platform Ecosystem Documentation & Badges:
- Dedicated NuGet README (
bindings/csharp/README.md) preventing raw metadata leaking on NuGet.org. - Dedicated Go README (
bindings/go/README.md). - Added live download counter badges for PyPI, npm, Crates.io, and NuGet (>4,000 total downloads across registries).
- Clarified Pure Rust ISO 32000-1 architecture and separated English & Portuguese FAQs.
- Dedicated NuGet README (
Full Changelog: v0.3.0...v0.3.1