не могу использовать оба вместе, но это работает в PdfMake Playground, ниже мой код
var dd = {
background: (currentPage, pageCount) => {
return {
canvas: [
{
type: 'rect',
x: 15, y: 15, w: 930, h: 510,
color: '#eaeaea'
}
]
};
},
content: [
{
alignment: 'center',
columns: [
{
table: {
body: [
[
{
text: 'A top tier company with fair market valuation, maximum visibility and industry benchmark of analyst coverage',
fillColor: 'white',
fontSize: 14,
margin: [5, 5, 5, 5]
}
],
],
widths: [321],
},
layout: 'noBorders',
},
],
margin: [0, 15, 0, 0]
},
],
}