• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to convert a jsp into a PDF  RSS feed

 
Anjali Pal
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am working on a struts based project . In this project i have a jsp which displays table in a nested format , but i have to provide the user a button say
"GET PDF" on click of which that entire jsp should get exported as a .pdf file as it is .

1] I cant use display tag because export functionality is not provided for nested table.
2] I cant figure out how to put an entire jsp as an input stream if i was to use itext (that is if its possible ).

What are my other options ? Bottom line, what i need is to "make a .pdf file of a .jsp displayed, on a click of a button ".


Thanks in advance,
Anjali.

 
Rahul P Kumar
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use some open source solutions like PDFBox-0.7.3-dev.jar
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!