This method can be used place tables. Returns a Row object.
Arguments:
- opts - styling options
Options:
- height
Same as table.tr([opts]), but the created row is only rendered before table page breaks.
Create a dynamic before pagebreak row.
Arguments:
- fn - function called, when creating the before pagebreak row
Example:
table.beforeBreak(function(row, i) {
row.td('BEFORE idx: ' + i)
})
Table row.
This method can be used place tables. Returns a Row object.
Arguments:
- text - the cell's text content
- opts - styling options
Options:
- colspan (default: 1) - through how many columns the cell should span
- height
Table cell.
Example:
var td = tr.td()
td.text('Foo')
td.text('Bar')
td.image(img)
Same as doc.text([text], [opts])
Same as doc.table([opts])
Same as doc.image(img, [opts])