Skip to main content

bengali_pdf 0.1.1 copy "bengali_pdf: ^0.1.1" to clipboard
bengali_pdf: ^0.1.1 copied to clipboard

HarfBuzz-shaped, searchable Bengali PDF text for native Flutter platforms, with bundled Noto Sans Bengali and custom font providers.

0.1.1 #

  • Remove an unnecessary import flagged by static analysis.

0.1.0 #

Initial professional fork maintained by JehadurRE.

Native release candidate: HarfBuzz shaping, a selectable logical Unicode text layer, human visual review, target-specific CI, PDF-embedding tests, and a successful Windows debug build are complete. Web remains a separately tracked WASM backend and is not part of the native 0.1.0 release.

  • Updated to harfbuzz_ffi ^0.5.1 (HarfBuzz 14.4, native_toolchain_c build hook); the minimum SDK is now Dart 3.13 / Flutter 3.47.
  • Fixed shaped rendering and text extraction across viewers: every glyph is painted at its HarfBuzz offset again (reph, u-kar, nukta and conjunct parts were drawn in the wrong place), pdf.js no longer leaks control characters into copied text, and Chrome's viewer (PDFium) no longer splits words or drops spaces and ZWNJ. CI now checks extraction with Poppler, PDFium, and pdf.js, including reph and ZWNJ cases.
  • Renamed the package to bengali_pdf with legal attribution to the upstream BSD-licensed bangla_pdf project.
  • Added lossless mixed-script segmentation that preserves Unicode, line breaks, Bengali digits, punctuation, ZWJ, and ZWNJ.
  • Added bundled, offline Noto Sans Bengali variable font with complete OFL-1.1 notice and reproducible checksum.
  • Added memory, Flutter asset, and bundled font providers with validated TTF/OTF data and concurrent-load caching.
  • Added collision-free namespaced PDF widgets: BengaliText, BengaliRichText, BengaliHeader, BengaliParagraph, BengaliBulletList, and BengaliTable.
  • Added a deprecated compatibility entrypoint for migration from generic 1.x widget names.
  • Added a real cross-platform PdfPreview example, Bengali regression corpus, PDF integration tests, strict analysis, package hygiene, and CI/release checks.
  • Added native HarfBuzz GSUB/GPOS shaping on Android, iOS, Linux, macOS, and Windows using the exact embedded font bytes and face index.
  • Added a package-local Type 0 PDF font bridge with explicit CID-to-GID and a width-aligned invisible Unicode layer for exact extraction, selection, copying, search, and highlight geometry.
  • Added cluster-safe multiline wrapping and deterministic tests for conjuncts, vowel marks, source-cluster preservation, and PDF extraction metadata.
  • Added BengaliPdfTextBuilder to share one embedded shaped font across many widgets and migrated the executable example away from nominal-glyph widgets.
  • Deprecated nominal-glyph Bengali widgets for production rendering; they stay available temporarily for source compatibility.
0
likes
160
points
32
downloads
screenshot

Documentation

Documentation
API reference

Publisher

verified publisherjehadurre.me

Weekly Downloads

HarfBuzz-shaped, searchable Bengali PDF text for native Flutter platforms, with bundled Noto Sans Bengali and custom font providers.

Repository (GitHub)
View/report issues
Contributing

Topics

#flutter #pdf #bangla #fonts #pdf-generation

License

BSD-3-Clause (license)

Dependencies

ffi, flutter, harfbuzz_ffi, pdf

More

Packages that depend on bengali_pdf