Class NametagFormat
In: app/models/nametag_format.rb
Parent: ActiveRecord::Base

Methods

generate_for   new   size  

Constants

Defaults = {:name_width => 12, :h_start => 30, :v_start => 5, :id_bar_hpos => 480, :id_bar_vpos => 30, :id_bar_orient => 1, :id_bar_narrow => 2, :id_bar_wide => 4, :id_bar_height => 70
Orientations = {0 => _('Horizontal'), 1 => _('Vertical'), 2 => _('Upside down'), 3 => _('Vertical inverted')}

Public Class methods

The constructor will assign the default values (specified in the Default constant) if they are not specified. They can, of course, be later replaced.

Public Instance methods

Generates the EPL2 commands for printing a specific person‘s nametag with this format

Textual representation of label size in points (printers work at 203dpi)

[Validate]