Class: XlsxWriter::PageSetup

Inherits:
Object
  • Object
show all
Defined in:
lib/xlsx_writer/page_setup.rb

Constant Summary collapse

DEFAULT =
{
  :top            => 1.0,
  :right          => 0.75,
  :bottom         => 1.0,
  :left           => 0.75,
  :header         => 0.5,
  :footer         => 0.5,
  :orientation    => 'landscape',
  :vertical_dpi   => 4294967292,
  :horizontal_dpi => 4294967292
}

Instance Method Summary collapse

Instance Method Details

#to_xmlObject



22
23
24
# File 'lib/xlsx_writer/page_setup.rb', line 22

def to_xml
  %{<pageMargins left="#{left}" right="#{right}" top="#{top}" bottom="#{bottom}" header="#{header}" footer="#{footer}"/><pageSetup orientation="#{orientation}" horizontalDpi="#{horizontal_dpi}" verticalDpi="#{vertical_dpi}"/>}
end