Hello,
Thanks for your support. It's working like charm on my local ubuntu machine.
When we try the same on server CentOS 6.7, it worked through terminal (it created html, pdf successfully) but when we try from browser it goes into loop (didn't generate any result) . Could you suggest something to resolve this