[jboss-user] [JBoss Seam] - Re: Creating PDFs Programmatically

nhpvti do-not-reply at jboss.com
Wed Apr 18 03:51:43 EDT 2007


"jgilbert" wrote : I have the seam-pdf functionality working in my application. Now I want to have a background process create PDFs periodically. Currently I am using commons-httpclient to call out and back into my app and handle the redirect to create a PDF.
  | 
  | It works but does anyone have a better way to do this?

I'd like to know it too.

But if you are simply sending PDFs by email here is a very elegant solution:

http://docs.jboss.com/seam/1.2.1.GA/reference/en/html_single/#d0e8925

anonymous wrote : And it gets even better, you can attach a Seam generated PDF, or any standard JSF view, just by wrapping a <m:attachment> around the normal tags you would use:
  | 
  | <m:attachment fileName="tiny.pdf">
  |   |     <p:document>                                                      
  |   |         A very tiny PDF                                                                                                
  |   |     </p:document>
  |   | </m:attachment>

I must say that I didn't try it myself yet.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038249#4038249

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038249



More information about the jboss-user mailing list