Hi,
We are using the Aspose pdf.kit (java) for adding the watermark into the existing pdf documents. we are adding the watermark into pdf at one state and need to remove the added watermark in another state. I'm getting the issues with the removing the waternark. Can you please provide the sample code for removing the watermark.
The following code is used for the adding the watermark in pdf .
PdfFileStamp fileStamp1 = new PdfFileStamp(outFile, stampFile);
Stamp logoStamp = new Stamp();
logoStamp.bindLogo(new FormattedText("Submitted",
new FontColor(90,90,90), FontStyle.TimesRoman, EncodingType.Winansi, false, 50));
logoStamp.setOrigin(200, 400);
logoStamp.isBackground(true);
logoStamp.setOpacity(0.5f);
logoStamp.setRotation(30);
fileStamp1.addStamp(logoStamp);
fileStamp1.close();
Stamped file also attached.
Regards,
Dheeraj