Class: Zebra::Zpl::PDF417

Inherits:
Object
  • Object
show all
Includes:
Printable
Defined in:
lib/zebra/zpl/pdf417.rb

Defined Under Namespace

Classes: InvalidRowColumnNumberError, InvalidScaleFactorError, InvalidSecurityLevelError

Instance Attribute Summary collapse

Attributes included from Printable

#data, #margin, #position, #x, #y

Instance Method Summary collapse

Methods included from Printable

#initialize, #justification, #justification=, #rotation, #rotation=

Instance Attribute Details

#column_numberObject

Returns the value of attribute column_number.



12
13
14
# File 'lib/zebra/zpl/pdf417.rb', line 12

def column_number
  @column_number
end

#row_heightObject

Returns the value of attribute row_height.



12
13
14
# File 'lib/zebra/zpl/pdf417.rb', line 12

def row_height
  @row_height
end

#row_numberObject

Returns the value of attribute row_number.



12
13
14
# File 'lib/zebra/zpl/pdf417.rb', line 12

def row_number
  @row_number
end

#security_levelObject

Returns the value of attribute security_level.



12
13
14
# File 'lib/zebra/zpl/pdf417.rb', line 12

def security_level
  @security_level
end

#truncateObject

Returns the value of attribute truncate.



12
13
14
# File 'lib/zebra/zpl/pdf417.rb', line 12

def truncate
  @truncate
end

Instance Method Details

#to_zplObject



37
38
39
40
# File 'lib/zebra/zpl/pdf417.rb', line 37

def to_zpl
  check_attributes
  "^FO#{x},#{y}^BY,,10^B7#{rotation},#{row_height},#{security_level},#{column_number},#{row_number},#{truncate} ^FD #{data} ^FS"
end