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

Free Support Forum - aspose.app

How to Remove watermark from PDF Document

Hi Team,

The docx is converted to pdf and after converting i am going to add watermark text in it. Once the watermark text got added into the pdf document how can i remove the watermark text. I have gone through this link https://blog.aspose.com/pdf/insert-or-delete-text-image-watermark-in-pdf-csharp/ where they are removing the watermark using stamp id. Can you suggest me another approach how i remove the watermark text from pdf document using stamps?

I have used below code by using TextStamp to add watermark mark in PDF:
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(dataDir + “Aspose.pdf”);

TextStamp stamp = new TextStamp(“WATERMARK”);
stamp.HorizontalAlignment = Aspose.Pdf.HorizontalAlignment.Center;
stamp.VerticalAlignment = Aspose.Pdf.VerticalAlignment.Center;
stamp.RotateAngle = 45;
stamp.Opacity = 0.5;
stamp.Background = true;
stamp.TextState.FontSize = 72;
stamp.TextState.ForegroundColor = Color.Blue;
stamp.TextState.Font = FontRepository.FindFont(“Courier”);

foreach (Aspose.Pdf.Page pdfPage in pdfDocument.Pages)

pdfDocument.Save(dataDir + “Aspose_watermark.pdf”);

This topic has been moved to the related forum: https://forum.aspose.com/t/how-to-remove-watermark-from-pdf-document/271439