Dear Support,
Watermark is not showing in PDF file. I converted PPT file into PDF and again I added watermark text in PDF. please find the sample code below.
I have attached the PPT file for your reference.
Please advice if there is any other way to add watermark text.
And also let us know if there is any way to add watermark text in center of the page.
Aspose.Slides.Presentation pres = new Aspose.Slides.Presentation(InputFile);
pres.Save(OutputFile, Aspose.Slides.Export.SaveFormat.Pdf);
Aspose.Pdf.Facades.Stamp aStamp = new Aspose.Pdf.Facades.Stamp();
FormattedText txt = new FormattedText("PharmaReady", System.Drawing.Color.FromArgb(225, 225, 225), Aspose.Pdf.Facades.FontStyle.Helvetica, EncodingType.Winansi, true, 36);
aStamp.BindLogo(txt);
aStamp.IsBackground = true;
aStamp.Pages = null;
aStamp.Rotation = 45;
PdfFileStamp stamper = new PdfFileStamp(OutputFile, OutputFile);
stamper.AddStamp(aStamp);
stamper.Close();