Class: Zebra::Zpl::PDF417
- Inherits:
-
Object
- Object
- Zebra::Zpl::PDF417
- Includes:
- Printable
- Defined in:
- lib/zebra/zpl/pdf417.rb
Defined Under Namespace
Classes: InvalidRowColumnNumberError, InvalidScaleFactorError, InvalidSecurityLevelError
Instance Attribute Summary collapse
-
#column_number ⇒ Object
Returns the value of attribute column_number.
-
#row_height ⇒ Object
Returns the value of attribute row_height.
-
#row_number ⇒ Object
Returns the value of attribute row_number.
-
#security_level ⇒ Object
Returns the value of attribute security_level.
-
#truncate ⇒ Object
Returns the value of attribute truncate.
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_number ⇒ Object
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_height ⇒ Object
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_number ⇒ Object
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_level ⇒ Object
Returns the value of attribute security_level.
12 13 14 |
# File 'lib/zebra/zpl/pdf417.rb', line 12 def security_level @security_level end |
#truncate ⇒ Object
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_zpl ⇒ Object
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 |