Document templates and documents live in a connected Google Drive as Google Docs. Placeholders like {{ client_name }} are detected in templates, a document is created by copying a template and filling the values via the Docs API, and PDFs are exported through the Drive API with no local binary. The module keeps database records of templates and documents alongside Drive.
Use it when
- You generate contracts, offers or letters from templates that non-developers edit in Google Docs
- You need PDFs of filled documents without running a headless browser
What it gives you
- Templates and documents edited directly in Google Docs
- {{ variable }} detection and substitution via the Docs API
- PDF export through the Google Drive API
- Thumbnail previews on listing cards
- Google OAuth connection at /admin/settings/document-creator
- Admin pages Documents and Templates under /admin/document-creator
Document Creator news
-
Document Creator 0.10.0: Own tables, PhoenixKit 3 support and a settings permission
Document Creator 0.10.0 builds its own tables, works with PhoenixKit 3, gets a separate settings permission and checks which project a document belongs to.
-
Document Creator 0.9.15: Legacy Google login migration stops re-running
Document Creator 0.9.15 stops the old Google credentials migration from running at every boot, makes it all-or-nothing and needs PhoenixKit 2.43 or later.
-
Document Creator 0.9.14: The Categories page remembers the open category
Document Creator 0.9.14 keeps the selected category in the address, so saving a type, category or preset returns to it and a reload keeps it open.
-
Document Creator 0.9.13: Template counts on the Categories page
Document Creator 0.9.13 shows how many published templates each type holds on the Categories page, updated live, and fixes a crash on that page.
-
Document Creator 0.9.12: A clear page trail and forms in your language
Document Creator 0.9.12 shows the same breadcrumb trail on every page, opens category and type edits in the viewed language and needs PhoenixKit 2.38.
Install
1
Add to mix.exs
{:phoenix_kit_document_creator, "~> 0.10"}
2 Fetch it and run its migrations
$ mix deps.get && mix phoenix_kit.update
3
Switch it on in /admin/modules
- Package
- phoenix_kit_document_creator
- Releases
-
- 0.10.0
- 0.9.15
- 0.9.14
- Admin
-
/admin/document-creator - Links
- HexDocs ↗ GitHub ↗ Changelog ↗
Related modules
What it needs, what builds on it, and its neighbours in Content & community.
Boards
Collaborative infinite-canvas boards with live cursors, stored in the database
No other modules needed
Comments
Threaded comments for any resource, with reactions and moderation
No other modules needed
Entities
Define custom content types with field schemas, no migrations per type
No other modules needed
OpenGraph
Designed og:image templates, assigned per scope and rendered to PNG
No other modules needed
Posts
Social, feed-style user posts with likes, tags, boards and mentions
Needs Comments
Publishing
Database-backed CMS for blogs and docs, multi-language and versioned
Needs AI