You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Oleg Tkachenko <ol...@multiconn.com> on 2002/11/04 11:15:37 UTC

Re: How to show PDF file in jsp page ?

Jiri_Nejedly@orcz.cz wrote:

> I successfully created PDF , but now I don't know how to make browser show
> it like PDF (Acrobat is installed, when I open file directly in browser,
> all is ok).

Take a look at docs/examples/embedding/FopServlet.java as an example how to 
return pdf.

> What must I do, to make browser use Acrobat plugin ? Thanks.

The only way is to define application/pdf content type (+ some fiddling with 
.pdf at the end for a too smart browsers, search in archive, that's vfaq.)

-- 
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel