Manage text watermarks in documents.

1. Usage

uniword watermark SUBCOMMAND FILE [OPTIONS]

2. Subcommands

Subcommand Description

add FILE TEXT

Add a text watermark

remove FILE

Remove all watermarks

list FILE

List watermarks in a document

3. Options

3.1. add

--output, -o (required)

Output file path.

--color

Watermark color as hex string (default: #808080).

--font-size

Font size in points (default: 72).

--font

Font family name (default: Segoe UI).

3.2. remove

--output, -o (required)

Output file path.

4. Examples

Add a watermark:

uniword watermark add document.docx "CONFIDENTIAL" -o out.docx

Custom styling:

uniword watermark add document.docx "DRAFT" --color "#FF0000" --font-size 96 -o out.docx

Remove watermarks:

uniword watermark remove document.docx -o clean.docx

List watermarks:

uniword watermark list document.docx

5. Ruby API

doc = Uniword.load("document.docx")

doc.add_watermark("DRAFT", color: "#FF0000", font_size: 96)
    .save("output.docx")

# Check
doc.watermark?  # => true/false

# List
doc.list_watermarks  # => ["DRAFT"]

# Remove
doc.remove_watermark.save("clean.docx")