Use this file to discover all available pages before exploring further.
pdfmake supports both unordered (bulleted) and ordered (numbered) lists as first-class content nodes. Each list is defined with a single property — ul for unordered and ol for ordered — whose value is an array of items. Items can be plain strings, styled text objects, or even nested lists.
markerColor sets the color of the bullet or number independently from the item text. It can be applied at the list level or per item:
{ color: 'blue', // text color for all items markerColor: 'red', // bullet/number color for all items ul: [ 'item 1', 'item 2', { text: 'item 3 with custom marker color', markerColor: 'lime' } ]}
Any list item can contain a nested ul or ol node. pdfmake indents the inner list automatically:
{ ol: [ 'item 1', [ 'Parent item with sub-list', { ol: [ 'subitem 1', 'subitem 2', 'subitem 3 - Lorem ipsum dolor sit amet ...' ] } ], 'item 3\nsecond line of item 3' ]}
You can mix ol and ul at any depth:
{ ol: [ 'item 1', 'Lorem ipsum dolor sit amet ...', { ul: [ 'subitem 1', 'subitem 2', 'subitem 3 - Lorem ipsum dolor sit amet ...' ] }, 'item 3\nsecond line of item3' ]}
When nesting, the parent list item and the nested list are placed inside an array [...]. This array acts as a vertical stack — the first element is the parent item text, the second is the nested list.