Hello, is there any possibility to retrieve watermark text or image with related watermark options? I see Java and .NET api supports only check if watermark exists nothing more.
@PROCUREMENT2 Watermarks in MS Word documents are regular shapes with special names. For example see the following code that shows how to identify watermark shape:
Document doc = new Document(@"C:\Temp\in.docx");
// Get all shapes in the document.
NodeCollection shapes = doc.GetChildNodes(NodeType.Shape, true);
foreach (Shape s in shapes)
{
if (s.Name.Contains("WaterMarkObject"))
{
// this shape is a watermark.
Console.WriteLine(s.TextPath.Text);
}
}