code: function definePaperOrientation (options) {
    var paper = {border: options.border || '0'}
  
    if (options.height && options.width) {
      paper.width = options.width
      paper.height = options.height
    } else {
      paper.format = options.format || 'A4'
      paper.orientation = options.orientation || 'portrait'
    }
  
    return paper
  }
docs: Creates paper with specified options ------------------------------------