Skip to content

RasgaPDF v0.3.1: CID Font Metrics, NF-e Layout Fixes & Multi-Platform Documentation

Choose a tag to compare

@MartinsMessias MartinsMessias released this 30 Oct 03:18
· 27 commits to main since this release

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 /W width 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).
  • 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 /Prev chains with entry().or_insert().
    • Added width range validation and byte bounds checking in XRef stream parsing.
  • 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.

Full Changelog: v0.3.0...v0.3.1