Hi Kiran,
In DrawText function it is not possible to apply the alignment, because DrawText function contains the text position as its argument. So, to do center alignment in pdf file, we can use page layout to the page. Inside the layout we can bound a rectangle and can set alignment to the text using StringFormat. Please refer the code snippet below.
[C#]
PdfStringFormat format = new PdfStringFormat();
format.Alignment = PdfTextAlignment.Center;
PdfTextElement element = new PdfTextElement(text, font);
element.Brush = new PdfSolidBrush(Color.Black);
element.StringFormat = format;
PdfLayoutFormat layoutFormat = new PdfLayoutFormat();
layoutFormat.Break = PdfLayoutBreakType.FitPage;
layoutFormat.Layout = PdfLayoutType.Paginate;
RectangleF bounds = new RectangleF(new PointF(10,10),new SizeF(page.Graphics.ClientSize.Width- 20,page.Graphics.ClientSize.Height-10));
PdfTextLayoutResult result = element.Draw(page, bounds, layoutFormat);
I have created a sample to test this issue and it is available in the following link.
http://websamples.syncfusion.com/samples/PDF.Windows/F69149/main.htmPlease try this and let me know if this helps.
Regards,
Prakash