code: function definePaperSize (content, options) {
    var paper = definePaperOrientation(options)
  
    if (options.header || content.header) {
      paper.header = createSection('header', content, options)
    }
  
    if (options.footer || content.footer) {
      paper.footer = createSection('footer', content, options)
    }
  
    if (paper.header && paper.header.height === undefined) paper.header.height = '46mm'
    if (paper.footer && paper.footer.height === undefined) paper.footer.height = '28mm'
  
    return paper
  }
docs: Creates paper with generated footer & header --------------------------------------------