Skip to content

Releases: ianustec/openwebui-generate-documents

v1.2.0 - Company letterhead

Choose a tag to compare

@ianustec ianustec released this 19 Jul 05:44

What's new

  • Company letterhead: set letterhead: "Filename.docx" in frontmatter (aliases: sample, base_docx)
  • Accepts .docx and .dotx (templates are converted in memory for python-docx)
  • Resolves the file from chat attachments first, then from /mnt/uploads and the Open WebUI upload dir
  • Matches uuid-prefixed upload names (<uuid>_Filename.dotx)
  • Optional valve letterhead_dirs to override the scan paths
  • Keeps header, footer and page margins; rewrites only the body
  • Example + smoke tests in examples/letterhead.md and examples/test_letterhead.py

Notes

  • Do not set a programmatic cover together with a letterhead
  • Prefer calling generate_document with letterhead set instead of reading the template via execute_code
  • Open WebUI RAG may dump .dotx as binary text in context; putting the file under /mnt/uploads is a reliable path

Install

Paste generate_documents.py into Workspace → Tools, or replace your existing copy with this release.

v1.1.1 - Download link fix

Choose a tag to compare

@ianustec ianustec released this 18 Jul 07:38

Fix: the download link could return a 500 error when the document title contained spaces or accented characters (the /cache/files fallback route can't serve those). The file saved there now uses a safe ASCII name, the chat still shows the readable title.

Also removed a few unused imports.

v1.1.0 - First release

Choose a tag to compare

@ianustec ianustec released this 18 Jul 07:38

First public release of the tool.

  • Generate native .docx documents from Markdown with frontmatter, or from a JSON spec
  • 7 templates: blank, letter, report, memo, proposal, minutes, whitepaper
  • Cover pages, numbered headings, styled tables, callouts, code blocks, signatures, table of contents
  • Header and footer with page numbers
  • Saves through the Open WebUI Files API, falls back to /cache/files if not available