cb.lineTo(x - k * leading, y - height);
}
cb.rectangle(x, y, -leading * (maxLines - 1), -height);
cb.stroke();
int status;
VerticalText vt = new VerticalText(cb);
vt.setVerticalLayout(x, y, height, maxLines, leading);
vt.addText(new Chunk(texts[idx++], new LwgFont(bf, 20)));
vt.addText(new Chunk(texts[idx++], new LwgFont(bf, 20, 0, Color.blue)));
status = vt.go();
System.out.println(status);
vt.setAlignment(LwgElement.ALIGN_RIGHT);
vt.addText(new Chunk(texts[idx++], new LwgFont(bf, 20, 0, Color.orange)));
status = vt.go();
System.out.println(status);
document.newPage();
}
document.close();
}