simple_pdf_generator 0.2.4 copy "simple_pdf_generator: ^0.2.4" to clipboard
simple_pdf_generator: ^0.2.4 copied to clipboard

A lightweight Flutter package to generate PDFs from structured data.

0.2.4 #

  • Added SimplePdf.invoice with InvoiceData and InvoiceItem: minimal invoice PDFs (header, plain-text “Bill To”, line-items table, footer) built on the same pipeline as SimplePdf.generate.
  • Bill To uses paragraph-style text (no table borders). Optional customerAddress (multi-line via \n) and customerPhone.
  • Optional amountInWords (shown under the numeric total) and footerNotes (multi-line marketing / location copy) via extended PdfFooter.
  • Added PdfPlainTextBlock (PdfSection) for borderless stacked text in sections; documented in the README.
  • PdfFooter: optional trailingLines for stacked lines after text (used by invoices and available in generate generally).

0.2.3 #

  • Added PdfSection, PdfTableRow, and optional sections on SimplePdf.generate to render multiple tables side by side in one row (equal column widths, configurable horizontal/vertical spacing).
  • Strict layout validation: throws StateError with message Tables exceed available width in PdfTableRow. Reduce columns or number of tables. when estimated minimum width for any table in the row exceeds its share of the page body width.
  • PdfTable now extends PdfSection; existing tables / table usage is unchanged.

0.2.2 #

  • Added page orientation support in SimplePdf.generate: portrait (default) and landscape via pageLandscape.
  • Added pageFormat override support for custom page sizes/formats; when set, it takes priority over pageLandscape.

0.2.1 #

  • Table cells: added PdfTableCell with PdfTableCell.text and PdfTableCell.image so rows can mix Unicode text (theme font) and raster images (Uint8List, e.g. PNG). Plain String and raw Uint8List map values remain supported for backward compatibility.
  • Default max image size in table cells is 40×40 PDF points when not specified; optional Flutter BoxFit maps to the pdf package layout.

0.1.1 #

  • Added support for multiple tables
  • Added per-table summary sections
  • Added table header styling
  • Added table cell styling
  • Added summary styling
4
likes
150
points
419
downloads

Documentation

API reference

Publisher

verified publishermohsinpatel.online

Weekly Downloads

A lightweight Flutter package to generate PDFs from structured data.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, pdf

More

Packages that depend on simple_pdf_generator