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

Free Support Forum - aspose.com

Getting waterMark layout from Word Document using Aspose.words Java

Hello,
I am using Aspose.words Java version 15.8.0 . I am trying to get text watermark info contained in word document. The text watermark in word usually has layout options as horizontal or diagonal. I could see any API in Shape Class of Aspose.words Java for getting the watermark layout in API Docs. Is it possible to get layout, if so could you explain how?
Could you help it’s urgent!!

Thank you.

See attachment about watermark layout infoCapture.JPG (94.0 KB)

@Anbu2Win

Thanks for your inquiry. The watermark in the Word document is imported into Aspose.Words’ DOM as Shape node. You can use Shape.Rotation property to check the rotated angle of watermark. If it is “0”, the layout is “Horizontal”. If the angle is greater than “0”, the layout is “Diagonal”.

Thank you for the response. It was helpful.