simple_pdf_generator 0.2.4
simple_pdf_generator: ^0.2.4 copied to clipboard
A lightweight Flutter package to generate PDFs from structured data.
0.2.4 #
- Added
SimplePdf.invoicewithInvoiceDataandInvoiceItem: minimal invoice PDFs (header, plain-text “Bill To”, line-items table, footer) built on the same pipeline asSimplePdf.generate. - Bill To uses paragraph-style text (no table borders). Optional
customerAddress(multi-line via\n) andcustomerPhone. - Optional
amountInWords(shown under the numeric total) andfooterNotes(multi-line marketing / location copy) via extendedPdfFooter. - Added
PdfPlainTextBlock(PdfSection) for borderless stacked text insections; documented in the README. PdfFooter: optionaltrailingLinesfor stacked lines aftertext(used by invoices and available ingenerategenerally).
0.2.3 #
- Added
PdfSection,PdfTableRow, and optionalsectionsonSimplePdf.generateto render multiple tables side by side in one row (equal column widths, configurable horizontal/vertical spacing). - Strict layout validation: throws
StateErrorwith messageTables 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. PdfTablenow extendsPdfSection; existingtables/tableusage is unchanged.
0.2.2 #
- Added page orientation support in
SimplePdf.generate: portrait (default) and landscape viapageLandscape. - Added
pageFormatoverride support for custom page sizes/formats; when set, it takes priority overpageLandscape.
0.2.1 #
- Table cells: added
PdfTableCellwithPdfTableCell.textandPdfTableCell.imageso rows can mix Unicode text (theme font) and raster images (Uint8List, e.g. PNG). PlainStringand rawUint8Listmap values remain supported for backward compatibility. - Default max image size in table cells is 40×40 PDF points when not specified; optional Flutter
BoxFitmaps to thepdfpackage 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