Thank you, it is much needed, right now the most reliable way of generating PDF's I used not so long time ago is
- create DOCX with content and some template variable strings, like {{}}
- unpack document and get into text, replace text
- use DOCX->PDF linux tool to generate document.
Maybe this will be the good solution