Re: Showing a PDF inside a JSP

2005-08-05 Thread Gareth Evans
This works really well, we have our own reporting application that generates xml, from the interface you can generate a pdf on the fly using xsl-fo via a struts action that writes to the response and returns null; The nice thing about using xsl-fo is that you can switch the stylesheet to a gnum

Re: Showing a PDF inside a JSP

2005-08-05 Thread Jeroen Kransen
I have never worked with PDF, but I hear that XSL-FO can be translated into PDF easily. Have you people ever considered keeping the document in XSL-FO and then fork it where one path converts it into PDF where you need it and the other path converts it into (X)HTML with which you can do anythin

Re: Showing a PDF inside a JSP

2005-08-04 Thread Woodchuck
--- Gary VanMatre <[EMAIL PROTECTED]> wrote: > Try a reservation of name filing. It is a short one that is open to > the public. You are able to view the statement before paying for it > (uses the embedeed pdf). > Gary, very nice!! thanks for this great tip, i'm sure it will come in handy i

Re: Showing a PDF inside a JSP

2005-08-04 Thread Gary VanMatre
> hihi, > > i've also worked quite a bit with generating PDF documents (iText, > JasperReports via iReport) so i know Acrobat pains too. (yes Acrobat > is very moody, it works one day then not the next, and only for ppl it > likes) :) > > i went to that website: > http://www.sos.state.co.us/biz

Re: Showing a PDF inside a JSP

2005-08-04 Thread Woodchuck
hihi, i've also worked quite a bit with generating PDF documents (iText, JasperReports via iReport) so i know Acrobat pains too. (yes Acrobat is very moody, it works one day then not the next, and only for ppl it likes) :) i went to that website: http://www.sos.state.co.us/biz but couldn't find

RE: 1.3.x in production (was Re: Showing a PDF inside a JSP)

2005-08-04 Thread Marco Mistroni
To: Struts Users Mailing List Subject: Re: 1.3.x in production (was Re: Showing a PDF inside a JSP) Well, now I'm going to have to go update my blog to 1.3 just to beat you both :) (Nah, doesn't even REMOTELY count as a production app, I know! :) ) Frank Wendy Smoak wrote: &g

RE: Showing a PDF inside a JSP

2005-08-03 Thread David Thielen
: Re: Showing a PDF inside a JSP Cool, thanks! At work I actually have a rather lengthy document listing all the Acrobat issues I found along the way, and the solutions to it... quite a few... I'm going to add this to it as a miscellaneous note, just so I don't forget for next time (

Re: Showing a PDF inside a JSP

2005-08-03 Thread Frank W. Zammetti
Cool, thanks! At work I actually have a rather lengthy document listing all the Acrobat issues I found along the way, and the solutions to it... quite a few... I'm going to add this to it as a miscellaneous note, just so I don't forget for next time (and, oh, I *know* there's gonna be a next t

Re: Showing a PDF inside a JSP

2005-08-03 Thread Gary VanMatre
> Really? You found that to be necassery? What specific problem does it > solve (which of the MANY Acrobat problems I mean? :) ). > I belive that it had to do with the upgrade from the 5.x to 6.0.2 reader com controls. Version 6.0.2 would not run as an inprocess server. It wanted to fire u

Re: 1.3.x in production (was Re: Showing a PDF inside a JSP)

2005-08-03 Thread Frank W. Zammetti
Well, now I'm going to have to go update my blog to 1.3 just to beat you both :) (Nah, doesn't even REMOTELY count as a production app, I know! :) ) Frank Wendy Smoak wrote: From: "Joe Germuska" <[EMAIL PROTECTED]> ... my most recent app (which may make history this weekend as the first Str

Re: Showing a PDF inside a JSP

2005-08-03 Thread Frank W. Zammetti
Really? You found that to be necassery? What specific problem does it solve (which of the MANY Acrobat problems I mean? :) ). I ask because I spent probably a month dealing with PDF generation issues and I just last week managed to get everything working for everyone (it was one of those "it

1.3.x in production (was Re: Showing a PDF inside a JSP)

2005-08-03 Thread Wendy Smoak
From: "Joe Germuska" <[EMAIL PROTECTED]> ... my most recent app (which may make history this weekend as the first Struts 1.3.x based webapp to go into production? ;-) ) You'll beat me by a few days, then. ;) I have one out in test that I had originally planned to leave at 1.2.7... but what

Re: Showing a PDF inside a JSP

2005-08-03 Thread Gary VanMatre
> Excellent! I wouldn't have thought that would work, based on how > screwed up the Acrobat plug-in generally is, but that's excellent! > Well, I think there was better than a week spent one line of code, actually one char '\r'. You are not alone response.setContentType("application/pdf

Re: Showing a PDF inside a JSP

2005-08-03 Thread Frank W. Zammetti
Excellent! I wouldn't have thought that would work, based on how screwed up the Acrobat plug-in generally is, but that's excellent! Frank [EMAIL PROTECTED] wrote: I've also seen it done using the html embed tag. We used itext to deliver a fillable pdf. You can see it action here (http://www

Re: Showing a PDF inside a JSP

2005-08-03 Thread Joe Germuska
At 9:44 PM -0400 8/3/05, Frank W. Zammetti wrote: Hi Rafael, The only way I can think of to actually "embed" a PDF, or at least to give that appearance, is to use iFrames. It works like a charm; I'm using the technique in a couple of places on my most recent app (which may make history this

Re: Showing a PDF inside a JSP

2005-08-03 Thread gvanmatre
I've also seen it done using the html embed tag. We used itext to deliver a fillable pdf. You can see it action here (http://www.sos.state.co.us/biz). public ActionForward loadBytesIntoStream( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse

Re: Showing a PDF inside a JSP

2005-08-03 Thread Frank W. Zammetti
iText just generates the PDF on the server-side, the display issue on the browser would still be the same because you are returning a PDF stream back (or redirecting to a temp file, either way) and the browser recognizes that and passes it to the plug-in for display (a plug-in which, by the way, is

Re: Showing a PDF inside a JSP

2005-08-03 Thread ziggler
you can use "itext" to realize? 2005/8/4, Frank W. Zammetti <[EMAIL PROTECTED]>: > Hi Rafael, > > The only way I can think of to actually "embed" a PDF, or at least to > give that appearance, is to use iFrames. > > The Acrobat plug-in takes over the entire window it is shown in, which > when fr

Re: Showing a PDF inside a JSP

2005-08-03 Thread Frank W. Zammetti
Hi Rafael, The only way I can think of to actually "embed" a PDF, or at least to give that appearance, is to use iFrames. The Acrobat plug-in takes over the entire window it is shown in, which when frames aren't involved is the entire client area of the browser. So, using frames should, in

Showing a PDF inside a JSP

2005-08-03 Thread Rafael Taboada
Hi Folks, I know my doubt is out Struts topic but I want to use ur xperiencie in my problem. I want to show a report in PDF file inside a JSP, inside a table for example. I'm surfing on the web and all sites when try to show PDF they link to this file and the PDF is showed in the entire window