I have a question on how the following approach could be implemented / is feasible for using GoogleDrive, GoogleDocs, GoogleSheets via API as a PDF generator and document storage from templates where the templates itself are stored on the users GoogleDrive for a user in a proprietary app.
Basic Steps would look like this:
Create folders named "templates", "invoices" and "letters" in a users GoogleDrive
Create template files like "invoice" and "letter" in the "templates" folder from a pre-defined "master-template" (containing the users logo, contact info, etc. with multiple {placeholders} for the actual content to be filled in later
the user writes a letter in the app, maybe in simple markdown
the app sends the content in JSON representation to a Google Apps Script which in turn takes the appropriate template from the users "templates" folder and fills in the placeholders with the content
the newly created document gets saved as a PDF and put in the users GoogleDrive in the folder called "invoices"
Potential benefits:
- the user is able to the layout/formatting of his own templates in GoogleDrive, newly generated files use the user's modified template for creation
- the apps uses GoogleDrive as a pdf generator and document storage