Releases: ianustec/openwebui-generate-documents
Releases · ianustec/openwebui-generate-documents
Release list
v1.2.0 - Company letterhead
What's new
- Company letterhead: set
letterhead: "Filename.docx"in frontmatter (aliases:sample,base_docx) - Accepts
.docxand.dotx(templates are converted in memory for python-docx) - Resolves the file from chat attachments first, then from
/mnt/uploadsand the Open WebUI upload dir - Matches uuid-prefixed upload names (
<uuid>_Filename.dotx) - Optional valve
letterhead_dirsto override the scan paths - Keeps header, footer and page margins; rewrites only the body
- Example + smoke tests in
examples/letterhead.mdandexamples/test_letterhead.py
Notes
- Do not set a programmatic
covertogether with a letterhead - Prefer calling
generate_documentwithletterheadset instead of reading the template viaexecute_code - Open WebUI RAG may dump
.dotxas binary text in context; putting the file under/mnt/uploadsis 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
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
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