}
cb.setTextRenderingMode(PdfContentByte.TEXT_RENDER_MODE_FILL);
cb.beginText();
cb.setFontAndSize(bf, font.getSize());
cb.showTextAligned(PdfContentByte.ALIGN_CENTER, label, x, -y - (textHeight / 2f), 0f);
cb.endText();
}
private float getTextHeight(BaseFont baseFont, float fontSize, String text) {
float ascend = baseFont.getAscentPoint(text, fontSize);
float descend = baseFont.getDescentPoint(text, fontSize);