Class RGhost::Barcode::Base
In: rghost_barcode/rghost_barcode_base.rb
Parent: RGhost::Barcode::Parameter

Base of all kinds of barcodes. It‘s used to creates barcode. For more details about options see groups.google.com/group/postscriptbarcode/web/Options

Options

Facades

Options. Between parenthesis the original parameter.

  • :scale Scale in Array([x,y]). Example for twice the original size, :scale => [2,2]
  • :rotate Rotate angle.
  • :color(barcolor) Foreground color.
  • :background(backgroundcolor)
  • :x and :y Position. RGhost::Config::GS[:unit] will be used. Default :current_row and :limit_left
  • :width and :height(width and height). Width and height of barcode, RGhost::Config::GS[:unit] will be used.

Example:

 doc=Document.new
 doc.barcode_interleaved2of5('0123456789',
      :text => {:size => 10, :offset => [0,-10], :enable => [:text, :check, :checkintext] },
      :border => {:width => 4, :left => 15, :right => 15, :show => true},
      :height => 2
    )

Without options

 doc=Document.new
 doc.barcode_code39('0123456789')

Methods

make   new   ps  

Attributes

border  [R] 
guard  [R] 
point  [R] 
text  [R] 

Public Class methods

Public Instance methods

[Validate]