Background-layer

The background-layer will be added on every page.

var docDefinition = {
  background: 'simple text',

  content: (...)
};

It may contain any other object as well (images, tables, …) or be dynamically generated:

var docDefinition = {
  background: function(currentPage, pageSize) {
    return `page ${currentPage} with size ${pageSize.width} x ${pageSize.height}`
  },

  content: (...)
};