Hi i am using licensed aspose, Aspose.Words.Document, i want to remove the watermark from the document, searched all over didn’t get the right code.
using (MemoryStream inStream = new MemoryStream(template))
{
if (!AggreementHelper.IsLicenseAlreadyOpen)
InitializeLicense();
Aspose.Words.Document doc = new Aspose.Words.Document(inStream);
Aspose.Words.DocumentBuilder builder = new Aspose.Words.DocumentBuilder(doc);
}
initializing this way and replacing some bookmarks in it, now i want to add watermarks removal code in this.
I found on your support that doc.watermark is available but i can not able to find this.
i also found a code on your forum which is also not working, following is the code
Document doc = new Document(dataDir + “AddTextWatermark_out.docx”);
if (doc.getWatermark().getType() == WatermarkType.TEXT) {
doc.getWatermark().remove();
}