Logo: Relish

  1. Sign in

Project: Zebra-printer

Position EPL2

position set the origin for anything with the
block or from last call. Any use of the :at
option move the location relative to the set
position

Scenarios
Position block EPL2
Given
a DSL with:
ZebraPrinterDocument.new do
  language :epl2
  position(12,34) do
    text ''
  end
end
When
I execute the DSL
Then
the output should include "A12,34,0,2,1,1,N,"""
Move text relative to position
Given
a DSL with:
ZebraPrinterDocument.new do
  language :epl2
  position(12,34) do
    text '', :at => [10,10]
  end
end
When
I execute the DSL
Then
the output should include "A22,44,0,2,1,1,N,"""

Last published almost 5 years ago by Paul Mitchell.