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

Free Support Forum - aspose.com

How do I add watermark per page?

how do i add watermark per page??

The following Java code of Aspose.Words for Java API will add a text watermark to your document:

TextWatermarkOptions options = new TextWatermarkOptions();

doc.getWatermark().setText("Test", options);

You can also add an image watermark to your document using the following code:

ImageWatermarkOptions options = new ImageWatermarkOptions();

ImageInputStream stream = ImageIO.createImageInputStream(new File(dataDir + "Watermark.png"));
doc.getWatermark().setImage(ImageIO.read(stream), options);

For more information please check:

Please be sure that you use the Aspose.Words API. If you use Aspose.Slides API, please visit the Aspose.Slides free support forum.

1 Like

thank you very much