cb.beginText();
cb.setFontAndSize(font, 12);
cb.transform(AffineTransform.getRotateInstance(rotation/180f*Math.PI));
cb.showText(text1);
if (moveTextToNextLine)
cb.moveText(0, moveTextDelta);
else
cb.transform(AffineTransform.getTranslateInstance(moveTextDelta, 0));
cb.showText(text2);
cb.endText();