82
addCut
Adds paper cut to the command buffer. Sets paper cut.
Syntax
public void addCut(int type) throws EposException
Parameter
type : Specifies the paper cut type.
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Example
Not available in page mode.
Set value Description
Builder.CUT_NO_FEED
Cut without feeding
(The paper is cut without being fed.))
Builder.CUT_FEED
Feed cut
(The paper is fed to the cut position and then is cut.)
Builder.CUT_RESERVE
Cut reservation
(Printing continues until the cut position is reached, at
which the paper is cut.)
Builder.PARAM_DEFAULT
Feed cut
(The paper is fed to the cut position and then is cut.)
Error status Description
ERR_PARAM Invalid parameter was passed.
ERR_MEMORY Could not allocate memory.
ERR_FAILURE An unspecified error occurred.
To perform feed cut operation:
try {
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
builder.addCut(Builder.CUT_FEED);
///Process///
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}