adding multitemplate generating pdf