How to set the position of footer?

I’m using following code to set a footer in my presentation:

	Presentation pres = new Presentation(); 
	pres.getHeaderFooterManager().setFooterText("This is Footer Text");
	pres.getHeaderFooterManager().setFooterVisible(true);

This works perfectly fine. But the position of the footer is in the middle. I would like to be rendered at the right side of the slide. Can this be achieved?

@tanujd_203,

I have observed your comments. I have shared a piece of code. This will help you to achieve your requirements. Please share feedback with us if there is still an issue.

Presentation pres = new Presentation();
pres.getHeaderFooterManager().setFooterText(“This is Footer Text”);
pres.getHeaderFooterManager().setFooterVisible(true);
IPresentationHeaderFooterManager hfm;

pres.save(“pres1.pptx”, SaveFormat.Pptx);

IShapeCollection sc = pres.getSlides().get_Item(0).getShapes();
for(int i=0;i<sc.size();i++)
{
IShape shape = sc.get_Item(i);
IPlaceholder pc = ((AutoShape)shape).getPlaceholder();
if(pc != null && pc.getType() == PlaceholderType.Footer)
{
((AutoShape)shape).setX(((AutoShape)shape).getX() + 100);
System.out.println(((AutoShape)shape).getTextFrame().getText());
}
}
pres.save(“pres.pptx”, SaveFormat.Pptx);