class HexaPDF::Composer
def style(name, base: :base, **properties)
composer.style(:header1, base: :header, font_size: 30)
composer.style(:header, font: 'Helvetica', fill_color: "008")
composer.style(:base, font_size: 12, leading: 1.2)
Example:
that method.
See HexaPDF::Document::Layout#style for details; this method is just a thin wrapper around
If neither +base+ nor any style properties are specified, the style +name+ is just returned.
values and returns it.
Creates or updates the HexaPDF::Layout::Style object called +name+ with the given property
composer.style(name, base: :base, **properties) -> style
composer.style(name) -> style
:call-seq:
def style(name, base: :base, **properties) @document.layout.style(name, base: base, **properties) end