I am looking for an open source template engine in the style of smarty or dwoo (preferable dwoo due to its inheritance features) that can be used to create pdf files instead of html. I am not talking about just a pdf library that allows the creation of the function/method calls, but something that allows to create the page content in a similar way as the above mentioned template engines.
Has anybody seen something like that, or another idea that would allow me to do something similar?
Thanks.