Could you specify what you mean with
directly to the browser. If you mean in-place, I think it is something you configure your browser to do.
I use some FF plugin for PDF files and every time I click on a pdf file I get to choose if I'd like to open the file in the actual browser, save it or open it in it's targeted application.
IE7 seems to open pdf files in-place by default, so try using it and see how the pdf file is opened.
The problem is the intermediary page seam generates (while the PDF is generated to the DocumentStore) and then intermediary sends a http redirect to the PDF.
In my browser Ubuntu/Firefox this leaves a empty window and the PDF is opened in a system PDF viewer.
If I could generate a link in the source page that generated the PDF directly then it would work OK. I could do this but I'd have to jump though hoops I think and was wondering if there was an easy way around this.
Seam intermediary page:
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" ><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Refresh" content="0; URL=GenericPdf.pdf?docId=1&cid=231" /></head><body></body></html>