I realise it's an old question, but in case anyone else is interested in building applications that generate PDFs with end-user created and maintained templates, check out this component: https://www.outsystems.com/forge/component-overview/12591/docmosis-connector