Open pdf in popup browser window

Hello
I want to show a pdf file which is stored in a blob column in the database in a popup browser window.
I'm using apex 4.1 (soon 4.2) ans an 11gR2 database.
I searched the OTN forum and found a lot of threads about this issue but I do not see a solution that works fine for me.
Most inspiration from this post:
Show PDF ....
There is an example application from Kumar:
http://apex.oracle.com/pls/apex/f?p=52018
worspace: kumar2003
username: test_user
password: test
application: 52018
Test1 is the solution I want to create.
I tried :
Content-Disposition:  inline;and that works almost fine. Only the pdf is not in a popup browser window.
Patrick Wolf suggests:
<a href="your_download_link" target="_blank">PDF</a>But I do not exactly know what he means.
Any help would be appreciated.
Regards Erik

Hi,
I hope I understood your question correctly, if so my suggestion may be helpful. Otherwise I think it's nearly the same what paul writes, I only made clear my proposal in a website for you, first a photo:
and here is the link: http://www.goldschmiede-blumberg.de/pdf/adob_pdf.php.
Note 1: "Ausgabe 9" und "ein Mausklick hier genügt" are links!!
Note 2: " Um pdf-Dateien ...." Means: To read pdf files, you need the free Adobe Reader. The current version you can download from the Adobe website.
Look at it's source code.
Viel Erfolg
Hans-G.

Similar Messages

  • Open PDF-Output in browser window with full height

    Hi,
    I must open some BIP-Reports as PDF in a browser window via URL. The problem ist, that the height of the PDF-Output is fixed, as the PDF is shown in an iframe with fixed height.
    The height can be set in the BIP preferences, but only to a fixed value (not to something like "100%"). If the height is smaller than the users browser window, then there is unused space below the pdf output. If the height is greater than the users browser window, there are two scrollbars to the right: One for the html-Page and one for the PDF.
    I tried the following options:
    1. http://<bip-server:port>/xmlpserver/public/<report-name>.xdo?_xmode=4&_xf=pdf
    -> Output is PDF, only the PDF is shown (_xmode=4), opens in same browser window but height is limited.
    2. http://<bip-server:port>/xmlpserver/public/<report-name>.xdo?_xmode=4&_xf=pdf&_xpt=1
    -> PDF is not opend in browser window, but can be downloaded or opened in a separate PDF-Viewers window.
    I would like to just open the PDF in the browser window in full height. How can I achive this?

    Hello Yesh,
    you can open PDFs as a guest user (without authentification):
    1. Allow Guest Access (Admin -> Security Configuration -> Check "Allow Guest Access" and select a folder name).
    2. Copy your Report into this guest folder
    3. You can open the Report as PDF with a link like this:
    http://(bip-server-name):9704/xmlpserver/(guest-folder-name)/(report-name)/(report-name).xdo?_xpt=0&_xf=pdf&_xmode=4(&report-parameters)
    Just replace the strings in brackets. You find a great description of the URL parameters in Tim Dexters Blog
    http://blogs.oracle.com/xmlpublisher/2006/07/accessing_xmlp_enterprise_repo.html
    I didn't find an option to set the height of the PDF-Output for the guest user in the BIP-UI. Maybe I missed something. But you can manually edit the configuration file. It is located on your BIP server direcory in the subdirectory xmlp/XMLP/Users. Select the guest users subdirectory and edit the configuration file "user~.profile".
    In this XML config file there is an entry "viewerHeight". In the Value-Tag you can enter the PDF output windows height in pixel (but unfortunaly not in % - this was the question of my original posting).
    Hope that helps...
    Sascha
    Edited by: sascha@tesat on Oct 26, 2009 9:02 AM

  • Add button to open PDF in new browser window CS3

    I'm trying to add a button that says "Go" that will open a PDF in a new browser window.
    I've looked at the following article but don't see the "Select Action" pull-down.
    http://www.acrobatusers.com/blogs/tedpadova/opening-pdfs-new-browser-windows
    Using Dreamweaver CS3.
    Thanks in advance.

    Hi,
    I hope I understood your question correctly, if so my suggestion may be helpful. Otherwise I think it's nearly the same what paul writes, I only made clear my proposal in a website for you, first a photo:
    and here is the link: http://www.goldschmiede-blumberg.de/pdf/adob_pdf.php.
    Note 1: "Ausgabe 9" und "ein Mausklick hier genügt" are links!!
    Note 2: " Um pdf-Dateien ...." Means: To read pdf files, you need the free Adobe Reader. The current version you can download from the Adobe website.
    Look at it's source code.
    Viel Erfolg
    Hans-G.

  • Unable to open PDF file in browser using Reader 9 with IE8

    I just updated to IE8 and when trying to open a PDF file on the browser, I received a message stating to use Adobe Reader 8 or 9.  I downloaded AR9 and still receive the same message and cannot open PDF files in browser window.  It defaults to my Adobe Acrobat 6.0 which will not open the file.  I have Windows XP.  I do not have a problem opening a PDF file in Yahoo mail with AR9.  I have tried many different ideas on the web to no avail.  Appreciate any help to be able to default to open PDF files in the browser using AR9 which is apparently required by IE8.

    Fixed problem by taking to a computer store to find that my hard drive storage was maxed out.  I had the hard drive repaced with a larger amount of storage.   Problem resulted from inadequate amount of storage space which prevented me from downloading and installing Adobe Reader 9.
    Thanks to al that responded.  

  • Adobe Air I cannot open up a popup browser

    I'm having a problem with adobe air. I cannot open up a popup
    browser window from clicking on a button in a adobe air program. I
    can only open up browser windows within existing browser windows or
    a new window if none is open.

    Update:
    I can get this to work:
    var request:URLRequest = new URLRequest("
    http://www.mydomain.com");
    navigateToURL(request, "_blank");
    but not this:
    var request:URLRequest = new
    URLRequest("javascript:window.open('
    http://www.mydomain.com','NameofWindow','width=800,height
    =600,top=0,left=0'); void(0);");
    navigateToURL(request);

  • Forcing link in one web based PDF to open link to another PDF in new browser window

    We have created a form using LiveCycle Designer ES2.  The form is found on our website and is used by faculty to submit proposal information to our office.  Depending upon the answers to questions in the form if they say yes we had a link to another form that we would like them to complete and submit with the original PDF that they are working on.  The problem that we are having is that when they click on the form it opens the new PDF and all the data that they had entered in the original PDF is gone once the new form opens up.  Is there a way to force the new PDF via the use of some scripting that can go along with the link, or via the use of a button that can force the new form to open in a new browser window?  It is impractical for us to expect 1500 faculty members to change their browser settings to open new PDF's in a new window.  We have removed the links for now and have just put in text that says if they select yes they need to go out and complete the additional form.
    The form we are using can be found here: http://spo.usu.edu/files/uploads/SP-01.pdf
    The first three questions on page two where we reference the other forms is where we would like to be able to add the links to the new forms and have them open in a new browser window.  When the form is downloaded and opened in Adobe Acrobat/Reader the links functioned correctly, it just did not function properly when it opens in a browser.
    Thank you in advance for any assistance you can offer in regards to this issue.

    I used a button, removed the border/fill properties and underlined the caption to look like a URL.
    The click event is...
    // form1.page1.subform1.urlBtn::click - (JavaScript, client)
    app.launchURL("http://spo.usu.edu/files/uploads/SP-01.pdf",true);
    The PDF will open in a new window or tab, depending upon the browser configuration.
    Steve

  • Help!  Adobe Reader 9 won't open a PDF in a browser window!

    I just "upgraded" to Adobe Reader 9 today, on my Windows XP computer.
    I run Firefox 3.0.8 as my web browser.
    Since installing AR 9, I cannot open PDFs inside my browser.  When I try, I get the following error message:
    "The Adobe Acrobat/Reader that is running cannot be used to view PDFs in a Web Browser.  Please exit Acrobat/Reader and exit your Web Browser and try again."
    I have made sure my Application settings in Firefox are correct, associating PDFs with AR9.
    I made sure "Display PDF in browser" is checked in AR9.
    I need to be able to open PDFs in my browser for work. How do I fix this error?
    Thank you,
    Ben

    No Solution here either, but I'm experiencing similar problems. When opening pdf's my system just hangs and I'm having to reboot. This is not helping me with my business at all.
    I suppose it's just part and parcel of upgrading these days. Good luck with trying to down grade. I've just tried and there's more frustration than success. Oh well, I do have a 4 day weekend to get it going again.
    Best of luck to you,
    John
    oil jobs

  • Open PDF in same browser when the preference is set to open in new window.

    The corporate policy for all applications is to open the PDF document in new browser/reader but our application needs the reader to open in the same browser even the preference "Display PDF in Browser" is unchecked.... The setPreference from javascript (html) doesn't seemed to work... How do i make this work?
    Also, I need the links the browser to open in new browser once the PDF is loaded... do I need to reset the preference once it is loaded for the links to open in new browser?
    thanks,
    - Ray

    There is no way to override that from your application.   And if the Links in the PDF have an explicit "open in new window" setting, that is respected over the preference.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Wed, 19 Oct 2011 22:02:53 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Open PDF in same browser when the preference is set to open in new window.
    Open PDF in same browser when the preference is set to open in new window.
    created by h_ray<http://forums.adobe.com/people/h_ray> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3981167#3981167

  • Open links in new browser window

    We are using Oracle WCI 10.3/Collaboration 10.3 and have a Community Links Portlet (collab portlet) setup. The links open up in the same browser window and to get back to the portal, the user has to hit the back button on the browser. So,
    1) Is there a portal/collaboration configuration that enables links to open up in a new browser window?
    2) Is there a way to hide the address bar when the link opens up in a new window? (the reason for this question is, we may have a link to some applications where we don't want the user going in directly. So, by hiding the address bar, they can't copy the URL and access directly without going in through the portal).
    If there is any better way to do question 2 above, would appreciate the feedback.
    Thanks.

    I was able to figure this out:
    1) In the My Account section, under display preferences, there is an option to "open documents in same window" or "new window". By changing this, links in the Community Links portlet open up in a new browser window.
    2) With a simple javascript example that I found on the internet, I was able to customize the popup browser window with no address bar or menu buttons.
    Edited by: user1301820136 on Jun 26, 2009 9:59 AM

  • Opening PDFs in a New Window

    Is there a good way to code a link to a PDF on a web page that would ensure that the PDF opens in Reader or in a new browser window/tab instead of in the same window/tab?
    Even though modern browsers allow users to configure their setup to allow PDFs to be opened within the same browser window (this might even be the default behavior nowadays), I've found that many customers end up closing the entire browser by accident after they finish reading the PDF. Then they have to open the browser back up again, sign in again, and navigate back to where they were. In order to reduce the chance of this happening, and to provide a better customer experience, I would like to force the PDF to open in Reader or in a new window/tab.
    However, when I have tried to do this in the past, I have run into many types of errors based on the different browser/platform/version combos that exist out there. Examples:
    Two browser windows are opened -- one blank and one with the PDF.
    The PDF opens in Reader, but a blank window/tab is also opened.
    The PDF won't close. I have to close the window that spawned it first.
    Many of these errors seem to occur on computers where the user has already set up their computer to not allow PDFs to open in the same window/tab. So that when I do something to force the PDF to open elsewhere, it kind of happens twice.
    Is there a nice, clean way to do this?
    Thanks,
    David Ashleydale

    Welcome to the Apple Discussions. To get the pdf file to open in a new browser window you will need to first upload the pdf file to the server and then create a text or image hyperlink to an external page and use the URL to the pdf file. If you have a MobileMe account and put the pdf file in the Web/Sites folder the URL you would use in the Inspector/Links pane would be:
    http://web.me.com/yourMMe_accountname/filename.pdf
    If you were to add a folder to the Sites folder titled PDFs and put the file in it the link would be:
    http://web.me.com/yourMMe_accountname/PDFs/filename.pdf
    OT

  • Adobe reader 9 will not open in a IE browser window in windows 7 and Server 2003

    In short, I think their products do not work very well.  I'm not surprised Steve Jobs will not allow Flash on his products and I am not a Mac fan.  Every computer I've installed Reader 9 on has had problems opening a pdf in a browser window.  I've tried this on various versions of Windows with the same results.  To fix it I had to install Reader 8.  This is not a solution.

    I've got the same problem. I'll look forward to solving this on this thread.
    It really sucks- I have a ton of pdf files, and can't save them to Documents or send them out of the Adobe file.

  • Opening pdf documents in browser impossible

    Hi there all,
    have problems opening pdf documents in safari window. On all of my macs (except for the macpro) pdf docs open in the safari browser window using the pdf plug-in. Installed plug-in list tells me that adobe pdf-viewer plug-in is available. Why doesn't it work ? Running Firefox, same problem. Application asks what to do : open with preview app (standard), but no other possibility, although I have latest adobe reader app. installed, as well as acrobat professional 8.xxx.
    What is going wrong ? It seems pdf plug-in is not found or recognized. Help !

    Hi
    You can view all pdf doc in solman itself just select the same and click display icon or just double click it it will open in solar01 or solar02 itself but wait for some time to get it loaded.
    whereas if you want to open the doc in explorer just click the attributes and generate url and paste the same in explorer.
    You can view in explorer this way.
    If you are facing any issue in the above standard procedure please contact your basis team for the same.
    Please reward points.

  • Open PDF in a new window

    Hi. I'm trying to create a PDF and open it in a new browser window. I've already achieved to create the PDF and it seems to work fine when it opens in the current browser window but that's not what we are looking for.
    This is the code where I call the open report method:
    <h:commandLink id="informe" target="report"
                 onclick="openReport();"
              action="#{listadoPDSBean.mostrarInforme}"
              styleClass="boton"
              value="Ver Informe"/>Here is the javascript method where I open the new window (and about:blank window).
    function openReport() {
              nuevaVentana = window.open("about:blank", "report", "type=window, fullscreen=no, Menubar=no,
                    Status=no, Titlebar=no, Toolbar=no, Location=no, Directories=no, Resizable=yes");
    }When I try this it opens a new blank window and then opens the report in the application window.
    I'm sorry for my bad english.
    Thanks!

    Thanks, Alf.redo. That's what I'm doing now (I think). I have a commandLink that calls a method that writes the PDF. Here is:
    public void doGenerarReport(List listaInstancias, Map parametros,
                   String nombreReport, String formato) throws JRException,
                   IOException, URISyntaxException {
              // Obtener DataSource de la lista dada
              JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(
                        listaInstancias);
              HttpServletResponse response = FacesUtils.getResponse();
              response.setHeader("Content-Disposition", "inline; filename="
                        + nombreReport + ".pdf");
              ServletOutputStream out = response.getOutputStream();
              // Se obtiene el .jasper, el report compilado
              JasperReport report = getJasperReport("es/jda/cma/mrvca/reports/"
                        + nombreReport + ".jrxml");
              JasperPrint jasperPrint;
              try {
                   jasperPrint = JasperFillManager.fillReport(report, parametros, ds);
              } catch (RuntimeException e) {
                   log.error("Error rellenando el report " + nombreReport, e);
                   throw e;
              // Tratamos las caracter�sticas espec�ficas de cada uno de los formatos
              JRAbstractExporter exporter = null;
              if (formato.equals(PDF)) {
                   exporter = new JRPdfExporter();
              } else if (formato.equals(HTML)) {
                   response.setContentType("text/html");
                   exporter = new JRHtmlExporter();
                   exporter.setParameter(
                             JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, false);
              } else if (formato.equals(EXCEL)) {
                   response.setContentType("application/vnd.ms-excel");
                   exporter = new JRXlsExporter();
                   exporter.setParameter(
                             JRXlsExporterParameter.IS_AUTO_DETECT_CELL_TYPE, true);
              } else {
                   log.error("Error exportando el report el formato : " + formato
                             + " no se reconoce. Los formatos reconocidos son " + PDF
                             + ", " + HTML + " y " + EXCEL + " ");
              try {
                   exporter
                             .setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
                   exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, out);
                   exporter.setParameter(JRExporterParameter.CHARACTER_ENCODING,
                             "ISO-8859-15");
                   exporter.exportReport();
              } catch (RuntimeException e) {
                   log.error("Error exportando el report " + nombreReport, e);
                   throw e;
              out.flush();
              out.close();
              // Le indicamos a JSF que no queda nada por hacer.
              FacesContext.getCurrentInstance().responseComplete();
         }I try to open a new window with javascript. The new blank window opens in fact (when I create it with window.open. Just target="_blnak" doesn't work) but I cannot put the PDF inside of it. The PDF just opens in the current window not in the new one.

  • How to Open PDF in the browser...JSF

    String strUrl = http://..../xxxxxe43cb072378947fe8c1b7bcc7201691a.pdf
    FacesContext faces = FacesContext.getCurrentInstance();
    ExternalContext context = faces.getExternalContext();
    HttpServletResponse response = (HttpServletResponse)context.getResponse();
    response.sendRedirect(strURl);          Hello,
    I have to open PDF in the browser, I am trying to redirect using the above code, but it is throwing exception as below. Could some one help me in this issue?
    Thanks In advance
    Error Message:
    java.lang.IllegalStateException: Cannot forward after response has been committed
    Error details:
    java.lang.IllegalStateException: Cannot forward after response has been committed
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:313)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         at com.esri.adf.web.faces.application.ADFViewHandler.renderView(Unknown Source)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at com.esri.adf.web.util.ADFSessionTimeoutFilter.doFilter(Unknown Source)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)

    You cannot send two responses per request. The solution is to let the client create two requests. Common approach is to add an onclick to the commandbutton/commandlink which opens the PDF in a new browser window and let the actual command action invoke a redirect on the current browser window.
    E.g.<h:commandLink value="Download PDF" action="#{myBean.action}" onclick="window.open('http://..../xxxxxe43cb072378947fe8c1b7bcc7201691a.pdf');" />where the #{myBean.action} invokes a redirect and the http://..../xxxxxe43cb072378947fe8c1b7bcc7201691a.pdf opens the PDF in the new window.
    Edit
    I've read your question/problem once more and now I am a bit confused. All you want to do is to open the PDF file in a new window and you don't need to do something in the backing bean? Just use a link with target="_blank".
    <h:outputLink value="http://..../xxxxxe43cb072378947fe8c1b7bcc7201691a.pdf" target="_blank">Download PDF</h:outputLink>No need for a redirect here.
    Edited by: BalusC on Nov 21, 2007 7:21 AM

  • Cant open pdf files in browser

    Cannot open pdf files in browser but can open from hard drive. Using Adobe 11.0.02 with Windows 8. Have uninstalled Reader and reinstalled and then restarted PC; Checked for updates; used the Repair selection on the menu. Frustrated. Suggestions?

    Hi adityabhargava01-
    My first suggestion is to upgrade to the most recent version of Firefox by going to this link:
    http://www.mozilla.org/en-US/firefox/new/
    My second suggestion is to read this article on how to many your preferences on how Firefox deals with PDFs and all other file types:
    [[Options window - Applications panel]]
    I hope that helps!

Maybe you are looking for