@dougschaefer/openai-document
v2026.04.27.2
OpenAI-powered document processing for .pptx and .docx — analyze structure, enhance text while preserving formatting, generate from templates, and design pixel-perfect PDFs from natural-language instructions via headless Chromium. Vault-based API key.
Repository
https://github.com/dougschaefer6/swamp-openai-document
Labels
Contents
Quality score
How well-documented and verifiable this extension is.
Grade A
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types1/1earned
- Has description1/1earned
- At least one platform tag (or universal)1/1earned
- Two or more platform tags (or universal)1/1earned
- License declared1/1earned
- Verified public repository2/2earned
Install
$ swamp extension pull @dougschaefer/openai-documentRelease Notes
Add curated README and LICENSE to tarball (additionalFiles), bringing extension's Swamp Club quality grade from F/B to A-/B.
| Argument | Type | Description |
|---|---|---|
| filePath | string | Absolute path to the .pptx or .docx file |
| outputName | string |
| Argument | Type | Description |
|---|---|---|
| instructions | string | Design and content direction — describe the visual style, layout, colors, and what content to include. E.g., 'Modern proposal for Snap Inc, Kentucky blue and white color scheme, clean layout with geometric accents, two-column sections where appropriate. Cover page with large color block and company name.' |
| contentSource? | string | Optional: absolute path to a .docx file to extract content from. The design method will pull the text and restructure it into the new design. If omitted, GPT generates content based on instructions alone. |
| context? | string | Additional context — company info, client details, scope data, brand guidelines, etc. |
| outputName | string |
| Argument | Type | Description |
|---|---|---|
| filePath | string | Absolute path to the .pptx or .docx file |
| instructions | string | What to change in the text content |
| model | enum | |
| outputName | string |
| Argument | Type | Description |
|---|---|---|
| templatePath | string | Absolute path to the template .pptx or .docx file |
| instructions | string | What content to generate |
| context? | string | Additional context |
| model | enum | |
| outputName | string |
Resources
OpenAI-powered document processing for .pptx and .docx — analyze structure, enhance text while preserving formatting, generate from templates, and design pixel-perfect PDFs from natural-language instructions via headless Chromium. Vault-based API key.
Release Notes
Initial release. Four methods: analyze (parse .pptx/.docx structure), enhance (rewrite text preserving formatting), generate (populate templates with GPT content), design (generate pixel-perfect PDFs from natural-language instructions via headless Chromium).