@Thilakbabu, @manikandan1234,
Please try using the following code example. It changes the position of the slide number on the first slide in the presentation you attached.
var presentation = new Presentation("slidenumber-example.pptx");
var slideSize = presentation.getSlideSize().getSize();
var firstSlide = presentation.getSlides().get_Item(0);
for (var shape : firstSlide.getShapes()) {
// Find the shape of the slide number.
if (shape.getPlaceholder() != null && shape.getPlaceholder().getType() == PlaceholderType.SlideNumber) {
// Change the position.
var newX = slideSize.getWidth() - shape.getWidth() - 20;
shape.setX((float) newX);
break;
}
}
presentation.save("output.pptx", SaveFormat.Pptx);
presentation.dispose();