PDF reports engine based on HTML templates