Opening PDF Document in New Window

Hi,
I have requirement to open pdf document in new window. I'm using Travel Expense form. I'm using the FM PTRM_WEB_FORM_PDF_GET. When I give 'X' to i_display_form, it displays the pdf document in same session or window. But I would like to open the pdf file in new window.
The FM gives me pdf data of type RAWSTRING. Is there any FM or class where I can pass this data and open it in New Window.
Can anyone please suggest on this.
Regards,
JMB

download it using  gui_download and use cl_gui_frontend_services=>execute to execute that pdf file

Similar Messages

  • How to open pdf document in other window by using java script

    Hello All,
    I am working in R12 Application.
    My jdeveloper version is 10.1.3.3.0.3
    I want to open pdf document in other window on clicking the button
    for that i have written following code in process request of the controller:
    pageContext.putJavaScriptFunction("doFilterSwitch", "function doFilterSwitch(){window.open('/t01/oracle/TEST/inst/apps/TEST_appsdev2/logs/appl/conc/out/545042.pdf'); }");
    OAButtonBean moHelp =(OAButtonBean)webBean.findChildRecursive("Download");
    moHelp.setOnClick("doFilterSwitch()");
    but when i hit download button it gives me the below error:
    The webpage cannot be found
    HTTP 404
    Most likely causes:
    There might be a typing error in the address.
    If you clicked on a link, it may be out of date.
    What you can try:
    Retype the address.
    Go back to the previous page.
    Go to and look for the information you want.
    More information
    please help me out
    Regards,
    sheetal

    Instead of giving the link in Process form request, give the link directly in Destination URI property of the button and in target property write _blank.
    Note : use normal button not submit button

  • Open PDF's in new window in document library when using "Find a file" search

    I need to be able to open PDF's in a new window from a document library when using the "Find a file" search built into the document library "All documents" view. I currently have the following javascript on the page:
    _spBodyOnLoadFunctionNames.push("setTargetBlank()");
    function setTargetBlank()
    { $("a[href$='.pdf']").removeAttr('onclick').attr("target", "_blank");
    This works great when going to the document library and navigating through the folders then clicking on a link.
    The problem is when someone goes to the document library then uses the "Find a file" search and then they click on a link. The "Find a file" search does not do a postback (reload) of the page, therefore my javascript to find the PDF links
    and make them open in a new window does not run for the links on the page.
    I have read the following article but this does not seem to offer a solution that will work in this situation for SharePoint 2013 (Office 365): http://social.technet.microsoft.com/Forums/sharepoint/en-US/7ad3224c-3165-47ae-95bc-4f3928e2f9a8/opening-document-library-pdf-in-a-new-window-sharepoint-2013?forum=sharepointgeneral
    I suppose the idea solution would be to somehow tap into the event that is fired when using "Find a file" search to run my javascript and update the links for the search results.
    Can anyone offer any solutions to this issue?

    Hi,
    According to your description, my understanding is that you want to open PDF files in a new window from a document library when using the "Find a file" search.
    As you said, the "Find a file" search does not do a postback (reload) of the page, therefore JavaScript to find the PDF links and make them open in a new window does not run for the links on the page.
    I recommend to use JS link to achieve the goal. Create a JavaScript override file and upload the JavaScript file to the Master Page Gallery, and then set the JS Link property of the document library web part to point to the JavaScript file.
    Here are some links about the JS link in SharePoint 2013 for you to take a look:
    http://www.idubbs.com/blog/2012/js-link-for-sharepoint-2013-web-partsa-quick-functional-primer/
    http://www.learningsharepoint.com/2013/04/13/sharepoint-2013-js-link-tutorial/
    http://zimmergren.net/technical/sp-2013-using-the-spfield-jslink-property-to-change-the-way-your-field-is-rendered-in-sharepoint-2013
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Link to open pdf file in new window

    I want to create a link on a web page to open a pdf file in a
    new window. I used the "on click" "open brower window". Which does
    open the pdf file, but not in a new window. How do I open it in a
    new window?

    Your code is a mess:
    ** there is no apparent reason for the span:
    <td><span class="style1"
    onfocus="MM_openBrWindow('pdf/PR_launch.pdf','','')">Milford, OH
    So change that line to:
    <td>Milford, OH
    ** here you have two double quotes before This.
    <a title="”This" class="pdfFile"
    onclick="MM_openBrWindow('pdf/PR_Launch.pdf','','')"
    Change it to this, (with some other improvements):
    <a title="This" class="pdfFile"
    onclick="MM_openBrWindow(this.href,'','');return false"
    ** This is code salad:
    href="”PR_Launch.pdf”" link="" will="" open="" a=""
    .pdf=""
    file.”="">More (PR_Launch.pdf,
    230kb)</a></span></td>
    Change it to:
    href="pdf/PR_Launch.pdf">More (PR_Launch.pdf,
    230kb)</a></td>
    If you continue to have trouble, you might find my divaPOP
    Extension
    easier, and far more powerful. It automat6ically opens pdf
    files and
    links to all external files in a popup window without your
    needing to
    code each link:
    http://www.divahtml.com/products/divaPOP/open_popup_windows.php
    E. Michael Brandt
    www.divaHTML.com
    divaPOP : standards-compliant popup windows
    divaGPS : you-are-here menu highlighting
    divaFAQ : FAQ pages with pizazz
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • How to open PDF file in new window as default

    I have .pdf documents into which I have inserted links to other .pdf documents using pdfEdit995
    (I am a 77-year-old pensioner recording monumental inscriptions, not very computer literate and not able to afford expensive applications !) 
    The links in the temp.ps file (which pdf995 creates first) look like :-
    [ /Rect [85 225 107 228]
    /Border [ 0 0 0 ]
    /Action /Launch /File (.\\Another Folder\\TARGET FILE.PDF)
    /Subtype /Link
    /ANN pdfmark
    The links work fine, but open in the same window, which is annoying as it is then neccessry to re-open the original document, scroll down to the required page and find the next link.
    pdf995 support say that perhaps Adobe reader can be set to open in a new window, but I want this to be the default when I circulate my file to interested people, so would prefer to modify the links.
    Can anyone help with a smple solution ? (I also believe in Santa Claus !)
    System: Vista; Reader X 10.1.0

    I don't know if you can change this in the PS file, but if you had Acrobat you could embed the following code into your file, that will make sure the links open in a new window. However, you should be aware that this code will change the preferences at the application level, which some people might not appreciate.
    The code is:
    app.openInPlace = false;

  • Open pdf in a new window or save to desktop -- which?

    When I click on a .pdf link, Firefox downloads the file to my desktop. This is fine. Sometimes, however, I would prefer that Firefox simply open the .pdf document in a new window. How can I control this behavior?

    When I click on a .pdf link, Firefox downloads the file to my desktop. This is fine. Sometimes, however, I would prefer that Firefox simply open the .pdf document in a new window. How can I control this behavior?

  • Open PDF Link in new window?

    I want to create a Word document with hyperlinks to a variety of PDF files. I then want to create a PDF file from the Word document with hyperlinks intact.
    Here’s the problem. The PDF file made from the Word document has its embedded links opening in the same window. I want the embedded links to open in a new window. I set up the links in the Word document to open in a new window, but when the Word document is converted to PDF, the embedded links lose their open-in-new-window property.
    I know I can manually set the user preferences in Adobe Reader to not open cross-document links in same window, but that’s not the default.
    Is there a script that can be run when the first PDF file is opened that automatically changes the user preferences so cross-document links open in a new window? Or is there a way to easily modify the links created during the Word-to-PDF process so that the cross-document links open in a new window?
    Thanks for any help.
    JBrush

    I stumbled across this while trying to do a very simple project (or so I thought).  I also wanted my links
    to other pdf files to open in a seperate Adobe window (not a browser window).  I can't seem to get it to work.
    I tried right-clicking and selecting open in new window - didn't work.  I downloaded AutoBookmark as well.  It still didn't open in a new window after setting the option to do so for all links.
    Any suggestions?

  • 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

  • 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.

  • Safari 3.0.3 won't open PDF files in new window & won't download to desktop

    When I click on a PDF file at a website Safari opens a new browser window but the window is always blank. The PDF file never appears. When I try to download the file to the desktop (right click) it doesn't download. I've read everything about the PDF problem posted at any relevant forum here. I've tried the Quicktime MIME approach. Didn't work. I've disabled the "open PDF in browser" option in Adobe Reader. Didn't work. I've looked for the Adobe plug-in to relocate. Didn't work. I downloaded Adobe Reader 8. Didn't work. When I make Adobe the default rather than Preview, Safari still doesn't open the PDF files or download them. Is there anyone in the computing world who actually can fix this problem? And why hasn't this recurring problem that has affected so many others been escalated to Apple for resolution???!!!

    Installing the newest version of Adobe Reader and restarting Safari fixed this issue for me.

  • How to make fileDownloadActionListener to open pdf file in new window

    Hi all ,
    i used the component [ fileDownloadActionListener ] to make download pdf file ,
    my question is
    How make this components to download and open file in new window ?
    Jdeveloper version 11.1.2.3

    Here is a sample http://technology.amis.nl/2011/07/28/adf-11g-show-pdf-in-a-popup/
    or http://mahmoudoracle.blogspot.de/2012/06/genius-adf-buttons.html#.UZygjrVM_Lk
    in General you can use the technique described here http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/ and configure hte browser to püen the doenloaded file using the configured application (pdf reader in your case).
    Timo

  • HYPERLINKS  is it possible to use "_blank" to open PDF links in new window?

    When I export my PDF from Numbers '08, is it possible to have my Hyperlinks open in a new window? Possibly using the "_blank" HTML function inside the URL dialog? Right now the links just replace the PDF.
    *I've tried ex)*
    http://www.website.com target="_blank"
    http://www.website.com, target="_blank"
    Those don't seem to work. Any ideas? Is this fixed in '09?
    Thanks
    PS - seems there should be a checkbox saying "open hyperlink in new window". Just makes sense.

    Yes, true. But there is a way (in HTML) to force a link to open in a new window by including the "target=_blank" command. I'm wondering if Apple (or anyone else) has found a way to embed this into the "Hyperlink" property within Numbers? If not, it would be nice if future versions had a check box to include this option with a link in the Hyperlink property inspector.
    Thanks for the feedback!
    Message was edited by: flashburn3030

  • Please help to open PDF file in new window

    Hi!
    I have a My.pdf file, and file Other.pdf located in subfolder Myfolder.
    For example, my.pdf located on c:\Mydocs\My.pdf and Other.pdf located in c:\mydoc\Myfolder\Other.pdf
    I try make plugin that open Other.pdf in subfolder Myfolder, no matter in where My.pdf is located on computer.
    I found in SDK API, that I need create a new window for open pdf file, using WinAPI function - CreateWindow:
    HWND externHWnd = CreateWindow ("ExternalWindow", "PDFViewer",WS_OVERLAPPEDWINDOW,50, 50, 500, 500, 0, 0, gHINSTANCE, NULL);
    I copy example into Visual Studio, but in example there no gHINSTANCE is undeclared.
    or plese provide working code for my task
    Please help

    In which part of the SDK did you look.
    Do you really mean a plugin (control Acobat from inside - can only be written using C#)
    oder do you mean control/work with Acrobat from an external application (like vb,..) via activeX (=IAC).
    br, Reinhard

  • Java or HTML to open PDF in a new window in Adobe Reader, not IE

    Good morning,
    We have an interactive PDF document that has Flash built in.  We sized to match the screen settings within our company. However, the way we have it posted, when a user clicks the link to open the PDF document, it opens inside of Internet Explorer.  The IE browser and button bar take up space we need for the document so users don't have to scroll.  What I would really like is to be able to have the user click the link and it opens the document in Adobe Reader instead of IE.  Is there a way to do this?
    Any help would be greatly appreciated.
    Eric

    You need an HTML forum, such as Dreamweaver, to figure out the parameters you use to open the file
    Your question has nothing to do (that I can see) with Acrobat or even Reader (which is a different forum anyway) and everything to do with the HTML commands your web designer needs to use when the file link is clicked from a browser

  • Save Target As in IE Opens PDF in a New Window Instead of Downloading

    I work in the IT department at a UK firm of solicitors and we have recently observed issues with using "Save Target As" in Internet Explorer 8 on Windows 7 with Reader XI. Instead of prompting for the path to save the file, as you would expect, it instead opens a new browser window and loads the Adobe Reader plugin to display the file. The download Window does appear but as it doesn't even get as far as prompting for a path to save to obviously it never starts.
    We are able to work around this by clicking the Save button in the Reader plug-in once it has loaded but this isn't practical especially for large or complex documents which may take more than a few seconds to load. The issue does not occur in XP with identical versions of IE and Reader.
    Is anyone aware of a way I can selectively disable this behaviour without disabling the browser plugin as a whole?

    Does that only happen with PDF files, or any files?  My guess is the latter, which indicates a problem with IE.  Try a repair: http://support.microsoft.com/kb/318378

Maybe you are looking for

  • I was updating my mac and the screen turned gray with an apple sign and a loading wheel.  What do I do?

    Its been like that for hours. It's just an apple sign and a spinning wheel/ circle (not the pinwheel) I was updating mountain lion.

  • Distribute file to multiple emails using ssis

    I want to send an email to multiple email recipients.  The list of all the email recipients are present in a Flat File.  My SSIS package should get the list of email recipients from the Flat File, and send an email to all of them.  All the recipients

  • FCC on sender side

    Hey guys i have a requirement wherein i will be getting a CSV file of the form <Reg>3 <Name>mark</Name> <Age>25</Age> </Reg> <Reg>4 <Name>Adam</Name> <Age>27</Age> </Reg> i have convert this file to XML and send over HTTP, is this possible using FCC,

  • Itunes not Reading iphone

    Hey Guys, My itunes is no longer reading my iphone, the computer is reading it as a camera. How ever my dads computer can read it fine. I have reinstalled itunes about 5 or more times, i have tried to reinstall the drivers manually. I have forced my

  • IMac g3 dv not downloading os x 10.3 panther disk

    Hi everyone, My iMac stopped working previously and I was told I had to purchase a new hard drive and install it. I did so, and started my Mac up again. I went into the installation and it got to the 'select a destionation' part. It showed the hard d