Examples

Practical CLI invocations. The Windows-focused walkthrough lives in Quickstart (Windows); these cover the cross-platform flags.

Basic stamp

officestamper -d data.json -t template.docx -o output.docx

Validate without writing output (dry-run)

officestamper -t template.docx -d data.json --dry-run

Unresolved placeholders cause a non-zero exit code and no file is produced.

Multi-stamp a directory

officestamper -t report.docx -d ./data-dir -o ./out

Each top-level data file or immediate subfolder becomes its own context.

Structured JSON logs (CI/automation)

officestamper -t template.docx -d data.json -o output.docx --log-format json

Next steps

  • Getting Started — add the dependency and stamp your first document.
  • Features — supported data formats, diagnostics, and native packaging.
Edit this page