55
Chapter 4 API Reference
4
addFeedUnit
Adds paper feeding in dots to the command buffer.
Syntax
public void addFeedUnit(int unit) throws EposException
Parameter
unit : Specifies the paper feed space (in dots). Specifies an integer from 0 to 255.
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Example
Error status Description
ERR_PARAM Invalid parameter was passed.
ERR_MEMORY Could not allocate memory.
ERR_FAILURE An unspecified error occurred.
To feed paper by 30 dots:
try {
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
builder.addFeedUnit(30);
///Process///
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}