GenOffice docx watermark
genoffice_docx_watermarkSet a text watermark on .docx files: the header is regenerated while body bytes stay unchanged, writing a new file without touching the original. Pass an empty string to remove the watermark.
Instructions
Set a text watermark on a .docx using the GenOffice engine: the header part is regenerated with the watermark paragraph while the document body keeps its original bytes (byte-preserving roundtrip). Pass an empty string to remove the watermark. Writes a NEW file, never modifies the original.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the source .docx (never modified) | |
| text | Yes | Watermark text ("" removes the watermark) | |
| outPath | No | Absolute output path; defaults to <dir>/<name>.watermarked.docx |