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

Free Support Forum - aspose.com

How to Add a Watermark Above the Text or Image into a PowerPoint Presentation?

After the code is executed, the watermark will be added below the text and image, but I want to add the watermark above the text and image
this is my code:image.png (33.1 KB)
And this is what it looks like when I execute the code :image.png (24.4 KB)
image.png (40.4 KB)

@good_luck,
Thank you for contacting support.

I was unable to reproduce the problem you described. If the watermarks are added last, they will be placed above all contents on a slide. Please check this carefully and use the latest version of Aspose.Slides if it is possible. If the issue persists, please share the following data and information:

  • input and output presentation files (you can zip the files and upload an archive here)
  • compilable code example as text (not image)
  • Aspose.Slides version you used
  • OS version on which the code was executed
  • JDK version in your app

Thanks for your reply!

1、input pptx and output pptx in zip.zip.zip (77.1 KB)

2、 Here’s my codecode.zip (1.1 KB)

3、 * Aspose.Slides version is 22.6 image.png (1.3 KB)

4、windows 10.

5、jdk 1.8

@good_luck,
Thank you for the additional information. I reviewed you code example. Please note that you are adding the watermarks on a master slide, but the image is placed on a presentation slide. The presentation slide content is always placed above the master slide content. If you want to place the watermarks above all content, you should add them on the presentation slide last.

ISlide presentationSlide = presentation.getSlides().get_Item(0);