• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp to Pdf file using Apache Fop

 
naro pad
Ranch Hand
Posts: 58
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm a newbie to this forum so....be patient
I'm using NetBeans IDE 6.0.1 and I want to use Apache Fop to export a jsp page to pdf file. What steps I have to follow in order to install Fop and use it under Netbeans. I check out on the Internet but I didn't find anything useful.

Can anyone help me at least to provide me a reference or any comments?

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Pan", please check your private messages for an important administrative matter.
 
Stevi Deter
Ranch Hand
Posts: 265
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't address the NetBeans side of the question, but as for using Apache FOP to create a PDF of a JSP page, you'll need to figure out the best way to transform your JSP content into an XSL-FO object that can then be output as a PDF.

The best place to start is looking at the examples that come with the Apache FOP download. This article may also help guide you in the right direction.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I may be misunderstanding the question, but if you're trying to create a PDF version of an HTML page, then that's not so easy. The first step would be to create an XML version of the page -containing just the data to be displayed, and no layout markup-, which could then be converted into HTML for display and into PDF using an XSL-FO stylesheet using FOP.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic