File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Portals and Portlets and the fly likes Problem saving a PDF document Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "Problem saving a PDF document" Watch "Problem saving a PDF document" New topic
Author

Problem saving a PDF document

Alessandro Gatta
Greenhorn

Joined: Mar 11, 2010
Posts: 1
Hi,
I'm developing an application using JSF and Jboss Portal 2.7.2. I need to visualize and save a pdf document in the portal. The code to generate the pdf preview is:
...
...

...
...

When I try to save the pdf, the name assigned to it by Adobe plugin is "JSFPortletWindow.pdf". I'd like to customize the name of the pdf but the setHeader doesn't work. I'd like to know if it's possible to modify at runtime the name of JSFPortletWindow that is in the WEB-INF\default-object.xml.
This is my xml

Please help me.
Thanks

This message was edited 1 time. Last update was at by Maneesh Godbole

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 7059

Alessandro,
Welcome to the Ranch.

In future, while posting code, please UseCodeTags as it makes the content easier to understand.
http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch


[Donate a pint, save a life!] [How to ask questions]
Neeraj Shidhaye
Greenhorn

Joined: Jan 09, 2006
Posts: 8
Hi,

Well, i also had requirement for generating PDF from portlet and which should allow user to open,save the pdf dodument.

I introduced servlet and my servlet was generating pdf.

I would suggest, if you could move your pdf generation code to Servlet that should solve your problem.
I mean, on click of your generate pdf button, control should go to servlet.

hope that helps.

<Neeraj Sidhaye/>
http://ExtremePortal.blogspot.com

 
 
subject: Problem saving a PDF document
 
MyEclipse, The Clear Choice