Q:

PDF with iText - Center Align Strings

I'm using the iText library for .NET to generate a PDF. I need to output a PDF with an image, which has three text strings positions centered vertically, but absolute Y positions. Each string uses a different font. I've been struggling for hours to find a way to do this, I can get the first line on Ok using SetSimpleColumn(), but further attempts have been fruitless.
Is there a way to do this?

A:

I eventually got this working with:
int y_offset = 20;
Phrase fullTitle = new Phrase("Some string", myFont);
ColumnText.ShowTextAligned(cb, Element.ALIGN_CENTER, fullTitle, center, y_offset, 0);

