How to apply water mark to only office documents using watermarkJsonData in editConfig json string

I am using the below code. In GetWatermarkJsonData() I am passing watermark details like text, fontSize…, . Do I need to add any other values or plugin to achieve this. Please guide me

var config = new Dictionary<string, object>
{
    { "type", "desktop" },
    { "documentType", await GetDocumentType() },
    { "watermarkJsonData", GetWatermarkJsonData()  },
    { "auditConfig", GetAuditConfig() },
    {
        "document", new Dictionary<string, object>
        {
            { "title", _itemContent.DisplayName },
            { "url", _presignedUrl },
            { "fileType", _itemContent.Extension },
            { "key", $"{parameters.ItemId}_{documentCreatedTicks}" },
            {
                "info", new Dictionary<string, object>
                {
                    { "owner", "Me" },
                    { "uploaded", _dateTimeProvider.UtcNow.ToShortDateString() },
                    { "favorite", null },
                }
            },
            {
                "permissions", new Dictionary<string, object>
                {
                    { "comment", false },
                    { "download", hasDownloadPermission },
                    { "print", hasPrintPermission },
                    { "edit", false },
                    { "copy", false },
                    { "fillForms", false },
                    { "modifyFilter", false },
                    { "modifyContentControl", false },
                    { "review", false },
                }
            },
        }
    }
}

Hi @ArunSterling :wave:
May I ask you a few questions to better understand your requirements?

  1. Are you using ONLYOFFICE Desktop Editors? image

  2. What version of the editor are you using?

  3. Could you describe in more detail the goal you are trying to achieve?

We have a plugin available here: ONLYOFFICE Plugin. This plugin demonstrates how to protect a document using a watermark.

Additionally, you can refer to this method for inserting watermarks: Insert Watermark API.