npm pdfmake 0.1.33

latest releases: 0.3.0-beta.8, 0.2.10, 0.3.0-beta.7...
6 years ago
  • lists - own item type (listType):
{
  ul: [
    'item 1',
    {text: 'item 2', listType: 'none'},
    {text: 'item 3', listType: 'circle'}
  ]
}
  • support for nesting text elements:
{
  text: [
    { text: 'a better ' },
    { text: [{ text: 'some text ', bold: true}] },
    { text: 'independently' }
  ]
}
  • ToC - custom style:
toc: {
  title: {text: 'INDEX'},
  textMargin: [0, 0, 0, 0],
  textStyle: {italics: true},
  numberStyle: {bold: true}
}
{
  text: 'This is a header, using header style',
  style: 'header',
  tocItem: true,
  tocStyle: {bold: true},
  tocMargin: [0, 10, 0, 0]
},

Don't miss a new pdfmake release

NewReleases is sending notifications on new releases.