How to add watermark in MPP file using Aspose Task for Java API

Hi

We have a requirement to add watermark in MPP file using Aspose Task for Java API.

Couldnt get a sample code when searched in net.

Can you provide us a sample code for the same?

Thanks
Sabarish

@sabkan,
could you clarify what kind of watermark do you want to add and what is its purpose?

Add watermark text and for security purpose.

@sabkan,
could you clarify, shoud the watermark text be displayed ? If yes, how it should be displayed?

Yes watermark has to be displayed.
It doesnt matter on how it should be displayed.

Thanks

@sabkan,
Let me see if I understood correctly:
you need to watermark to MPP file so that when the file is opened in MS Project it shows some kind of text?

MS Project and, consequently, MPP formats doesn’t support watermark.

You could use Headers or Footers or the Legend to put in a logo / custom image and they will be visible when project is printed / saved to PDF format.

Also the text label may be placed on Gantt Chart using Drawing/Text Box menu item.
The result may look like in the following picture: