Jamsheed asking a forum question requires a little more effort. Anybody here contributes valuable time, so honor that by asking properly:
- describe the exact problem including data you have and desired outcome - detailed
- share what you have tried and why it didn't work for you
- mention including urls what you were reading before you asked
- when a solution is offered and you can't get it to work: explain why and what is missing
- ask on Stackoverflow.com
PDF output is not rocket science, so 'doesn't work for my problem' awfully sounds like little effort spent researching it. And that doesn't work in a community.