bangla_pdf
1.9.2, released 2 months ago by zamansheikh.com
Proper Bangla text shaping, rendering, and extraction for PDF documents in Flutter.
What it does
Corrects Bangla text shaping (conjuncts, reph, and vowel signs) for PDF generation using package:pdf drop-in widgets, and provides robust PDF text extraction and Bijoy decoding.
AI-written summary of version 1.9.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to generate PDFs containing accurate Bangla text, numbers, and currency.
- You want to extract or search Bangla text from existing PDFs, including scanned or Word-exported files.
Skip it when
- You do not work with PDFs or Bengali localization.
Strengths
- Real OpenType shaping for Bangla conjuncts and vowel signs with correct selection and searchability.
- Drop-in replacement for standard package:pdf widgets via a single import.
- Extracts text from complex PDFs including Word exports and legacy Bijoy documents.
Weaknesses
- Limited to PDF generation and extraction workflows.
- Non-Bangla glyphs require explicit font fallbacks.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
import 'package:bangla_pdf/widgets.dart' as pw;
final pdf = pw.Document();
pdf.addPage(
pw.Page(
build: (context) => pw.Text('আমার সোনার বাংলা'),
),
);
final bytes = await pdf.save();Works with
Packages commonly used together with bangla_pdf: ones it builds on, ones built on it, and its own family.
- archivebangla_pdf depends on itEncodes and decodes archive and compression formats such as zip, tar, gzip, and zlib.
- cryptobangla_pdf depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- plugin_platform_interfacebangla_pdf depends on itReusable base class for platform interfaces of Flutter federated plugins.
- pdfbangla_pdf depends on itA PDF generation library for Dart and Flutter using a widget-like layout system.