I need to generate invoice pdf using the given template (I'm using kognoz`s invoicing app and due to certain circumstances it's functionality is not sufficient). The template is basically a bunch of data in different tables in DB. To do so I must gather the template data (it contains class variable references) as well as filler data and generate an apex page from it which will be then rendered as pdf.
The problem is that as I see it Salesforce does not support dynamic generation of VF pages. I've found Dynamic Visualforce components but it does not do the trick as I have variable amount of said components. I've also seen the thing called Tooling API however it seems way to complicated for such task.
Is there an easier way to dynamically create an VF page and render it as PDF?