aspose file tools
The moose likes Other Open Source Projects and the fly likes Jsp to pdf Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Jsp to pdf" Watch "Jsp to pdf" New topic
Author

Jsp to pdf

niks singh
Greenhorn

Joined: Dec 25, 2011
Posts: 16
how do i convert a jsp file into a pdf format?

My jsp file displays the data but I need to display the data in a pdf format so how do i do it?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2407
I assume you actually want to convert HTML to PDF? If you can make the HTML to be CSS-styled XHTML, then the FlyingSaucer library can help (possibly within in a servlet filter before the page is sent to the browser).

If the data is tabular data then the DisplayTag library may help.
niks singh
Greenhorn

Joined: Dec 25, 2011
Posts: 16



Hello,

my jsp data is in tabular format.

I want that on click of a button the jsp data should be displayed in pdf format.
niks singh
Greenhorn

Joined: Dec 25, 2011
Posts: 16
i am not using servlet

i am using struts
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56158
    
  13

Well, you've already been given two possible ways to approach it. Which have you chosen?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
niks singh
Greenhorn

Joined: Dec 25, 2011
Posts: 16
Could you please explain the solution in more detail, i dint get the solution clearly
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2407
There's nothing to "get", really - check out the two libraries I mentioned to see what they can do. This will involve creating sample code of your own. Both libraries come with extensive documentation, so it shouldn't be hard to get going. After you've done that, you'll be in a position to judge whether they satisfy your requirements.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jsp to pdf
 
Similar Threads
generate report in pdf format through a JSP page
how to export PDF report within the Arabic and English data through jsp code.
how to save a webpage with struts code as pdf in java?
jsp to pdf format
how to save a jsp page as pdf in java?