pdfmake
PDF document generation library for server-side and client-side usage in pure JavaScript.
Features
basics
- line-wrapping
- text-alignments (left, right, centered, justified)
- numbered and bulleted lists
- margins
- images and vector graphics
styling
- convenient styling
- style inheritance
- custom style dictionaries
tables and columns
- auto/fixed/star-sized/percentage columns widths
- col-spans and row-spans
- headers automatically repeated in case of a page-break
- non-breaking rows
- non-breaking sections keeping headers and rows together
page headers and footers
- static or dynamic content
- page numbers
- page count
other
- page dimensions and orientations
- background-layer
- custom page breaks
- font embedding
- support for complex, multi-level (nested) structures
- table of contents
- setting of PDF metadata (e.g. author, subject)
- tiling patterns
client-side helper methods
- download with the specified filename
- open in another tab
- print auto-triggering print
Examples
Check out the playground and examples (for version 0.1.x).