We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

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");

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?


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”);
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);
pres.save(“pres.pptx”, SaveFormat.Pptx);