File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Generating pdf on client side Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Generating pdf on client side" Watch "Generating pdf on client side" New topic
Author

Generating pdf on client side

chets patel
Ranch Hand

Joined: Apr 27, 2010
Posts: 74

Hi,
I have web application in which I am using spring faces. When I click on the link, it should retrive some information from the server and generate the pdf on client side.


Can any one help me on this.
Thanks in advance
nishit charania
Greenhorn

Joined: Feb 10, 2010
Posts: 9
Hi,

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.

Thanks,
nishitC
chets patel
Ranch Hand

Joined: Apr 27, 2010
Posts: 74

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.
Please suggest
nishit charania
Greenhorn

Joined: Feb 10, 2010
Posts: 9
I dont have access to response object


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.

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generating pdf on client side