why you need to generate pdf on client side....
For server side you can do using reporting tool like jasper report, pentaho report etc.
Or you can use itext api for generating pdf but this not give you any editor so this would be difficult to do.
I have generated pdf using itext. But that is on stand alone system. How can I send that to client machine. I can not set the content type to pdf as I dont have access to response object. No idea how to use jasper report.
I am not getting why you do not have access to response object.
Give snapshot of your code if possible or just create dummy project and put it.
So I can able to understand your scenario and try to resolve your problem.
Jasper report is a just a tool that helps to generate pdf. no need to go for that now if you did your task using itext.