To draw a rectangle with a thin solid line, with the start position (100, 0) and the end position (500, 200)
as its vertexes:
try {
Builder builder = new Builder("TM-P60", Builder.MODEL_ANK);
builder.addPageBegin();
builder.addPageRectangle(100, 0, 500, 200, Builder.LINE_THIN);
builder.addPageEnd();
///Process///
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}