Method: Axlsx::HeaderFooter#initialize

Defined in:
lib/axlsx/workbook/worksheet/header_footer.rb

#initialize(options = {}) ⇒ HeaderFooter

Creates a new HeaderFooter object

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • odd_header (String)

    The content for headers on odd numbered pages.

  • odd_footer (String)

    The content for footers on odd numbered pages.

  • even_header (String)

    The content for headers on even numbered pages.

  • even_footer (String)

    The content for footers on even numbered pages.

  • first_header (String)

    The content for headers on the first page.

  • first_footer (String)

    The content for footers on the first page.

  • different_odd_even (Boolean)

    Setting this to true will show different headers/footers on odd and even pages. When false, the odd headers/footers are used on each page. (Default: false)

  • different_first (Boolean)

    If true, will use the first header/footer on page 1. Otherwise, the odd header/footer is used.



26
27
28
# File 'lib/axlsx/workbook/worksheet/header_footer.rb', line 26

def initialize(options = {})
  parse_options options
end