Hi,
Hi Wolfang,
Please visit this thread link for information about adding watermark in PPT/PPTX. Hopefully, it will help you. If you still have issue then please feel free to share with us.
Thanks and Regards,
Hi,
Hi Wolfgang Raab,
I have worked with the code snippet shared by you and have made necessary changes inside it. Hopefully, it will work for you this time.
Thanks and Regards,
Hi,
Hi,
Hi Wolfgang Raabv,
I regret to share that any option like autofix the text size based on shape size is not available in Aspose.Slides. The mechanisms that I have shared is in fact the allowed and legal way to implement it.
Thanks and Regards,
Hi Team i wanna implement water mark for ppt slides. Could you please share code for it?
Thanks in advance!!
I have observed your requirements and like to share that Aspose.Slides allows feature to lock shapes in slide that you can use to add watermark. You can add watermark shape on master slide and then apply locks on that as given in following sample code. You may do formatting of watermark text as per your requirements.
public static void AddWatermarkShape()
{
Presentation pres = new Presentation();
IMasterSlide master = pres.Masters[0];
IAutoShape ashp = master.Shapes.AddAutoShape(ShapeType.Rectangle, 10, 10, 300, 300);
ashp.AddTextFrame("This is watermakr");
ashp.TextFrame.Paragraphs[0].Portions[0].PortionFormat.FontHeight = 25;
master.Shapes.Reorder(0, ashp);
ashp.ShapeLock.SelectLocked = true;
ashp.ShapeLock.SizeLocked = true;
ashp.ShapeLock.TextLocked = true;
ashp.ShapeLock.PositionLocked = true;
ashp.ShapeLock.GroupingLocked = true;
pres.Save("C:\\Aspose Data\\watermark.pptx", Aspose.Slides.Export.SaveFormat.Pptx);
}
I hope the share solution will be helpful.