Document Creator module for PhoenixKit.
Document template design and PDF generation via Google Docs API.
Templates, documents, and headers/footers are created and edited as
Google Docs, embedded in the admin UI via iframe. Variables use
{{ placeholder }} syntax and are substituted via the Google Docs
replaceAllText API. PDF export uses the Google Drive export endpoint.
Installation
Add to your parent app's mix.exs:
{:phoenix_kit_document_creator, path: "../phoenix_kit_document_creator"}Then mix deps.get. The module auto-discovers via beam scanning.
Enable it in Admin > Modules.
Google Docs Setup
Configure the Google Docs integration in Admin > Settings > Document Creator. You need a Google Cloud project with Docs API and Drive API enabled, and an OAuth 2.0 Client ID (Web application type).