71
Chapter 4 API Reference
4
addPageEnd
Adds the end of page mode to the command buffer. The page mode process ends.
Syntax
public void addPageEnd() throws EposException
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Example
Use this API function with addPageBegin (p.70).
Error status Description
ERR_MEMORY Could not allocate memory.
ERR_FAILURE An unspecified error occurred.
To print the characters "ABCDE" in page mode:
try {
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
builder.addPageBegin();
builder.addText("ABCDE");
builder.addPageEnd();
///Process///
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}