Aspose Watermark Text in PDF

Hi,

Iam Unable to add Watermark Text in PDF Diagonally. Iam able to add Horizontally.
Here is my code:
Aspose.Pdf.Facades.Stamp aStamp = new Aspose.Pdf.Facades.Stamp();
aStamp.Rotation = 45;
TextStamp textStamp = new TextStamp(allowwatermark);
//set properties of the stamp
// textStamp.Background = true;
textStamp.Opacity = 0.2;
textStamp.TextState.FontSize = 60.0F;
textStamp.HorizontalAlignment = HorizontalAlignment.Center;
textStamp.VerticalAlignment = VerticalAlignment.Center;
textStamp.RotateAngle =aStamp.Rotation;
textStamp.TextState.Font = FontRepository.FindFont(“Arial”);
textStamp.TextState.ForegroundColor = Aspose.Pdf.Color.Gray;

                // Adds Watermark in Page 1
                //pdfDocument.Pages[1].AddStamp(textStamp);
                //Adds Watermark in all Pages
                foreach (Page page in pdfDocument.Pages)
                {
                    page.AddStamp(textStamp);
                }

Thanks and Regards,
S.Saritha

Hi Saritha,


Thanks for contacting support.

I have tested the scenario using latest release of Aspose.Pdf for .NET 10.8.0 where I have used one of my sample PDF files and as per my observations, the watermark is properly appearing on resultant documents. Can you please share your sample PDF files, so that we can test the scenario in our environment. We are sorry for this inconvenience.