PDF viewer into new browser window

Hello,
I use following code to open new browser window with PDF file. The URL passed to the method is link to SICF service which returns the PDF in the request with content-type = 'application/pdf'. New window is open with correct URL, but the content is not displayed - Refresh or Go button has to be pressed to display it. Don't you experience similar problem? Is this WD error or some IE security setting?
Thank you and best regards,
Ludek
  lr_window = lr_w_manager->create_external_window(
      url = ld_url
      title = ''
      modal = abap_false
      has_menubar = abap_true
      is_resizable = abap_true
      has_scrollbars = abap_true
      has_statusbar = abap_true
      has_toolbar = abap_true ).
  lr_window->open( ).

Hi Ludek,
Probably a compression problem. Have you turned off gzip compression for the pdf?
Btw, an alternate solution without having a separate handler is to use the cl_wd_runtime_services=>attach_file_to_response() method.
Best regards,
Thomas

Similar Messages

  • Open PDF link in new browser window?

    I'm viewing a newly created PDF in a browser.
    When clicking an internal link, the linked PDF loads into the same window
    I need it to launch in a new browser window.
    I have set the link to "launch new window" in Word where this file originated.
    I have also opened and resaved it in Acrobat 10 with preference "Open cross-document links in same window" deselected.
    Neither of these setting have change the behavior though all documentation I read seems to suggest they should.
    What am I missing here??
    -Blake

    That preference setting does not apply to web links and do not refer to a browser window, but an Acrobat window.
    There is a JavaScript method that might work. Try setting the link action to something like the following script:
    app.launchURL("http://www.example.com/", true);
    This was taken from the example here: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.150.html
    The problem is if a user has Reader 10 and protected mode is enabled (as it is by default), it doesn't work and opens the link in the same browser window.

  • Opening links on a pdf in a new browser window in IE

    I am trying to get the links embedded in a pdf to open in a new browser window. I applied the follow javascript to the link's action:
    app.launchURL("myUrl", true);
    This works in Firefox, a new browser window opens, but not in Internet Explorer. In IE, it still replaces the pdf with the page being linked to. Has anyone come up against this? Thanks.

    thanks for the quick feedback-
    no, because my customer is using the IE 6. According to the system
    requirements all these Acrobat/Reader versions should also run
    properly under IE 6 http://www.adobe.com/support/downloads/detail.jsp?ftpID=3796
    I have a look in IE >> manage- add-ons and got the following Add-ons
    for adobe
    - Adobe PDF
    - Adobe PDF Conversion Tool helper
    both are enabled!
    Do I need more?
    can u pls check, if u have the following ddl's in the adobe home dir:
    Acropdf.dll, Acroiehelper.dll,Gbdetect.dll and Pdfshell.dll
    Thanks
    Caleb

  • Opening Hyperlinks from PDF in a new browser Window

    We have a web based (ASP.NET) tool to author HTML content. Authors can create/edit HTML content, preview, and save the file as PDF. A 3rd party component- abcpdf is used to convert HTML into PDF. The converted PDF form will be distributed to consumers.
    The PDF typically contains Hyperlinks, text boxes and submit button.
    Clicking the hyper link in PDF should open the HTML in a new browser instance. It should not hijack (overwrite or reuse) existing browser instance that may be active in users computer irrespective of browser setting. Changing the browser setting IE: Internet Option > Advanced > Reuse windows for launching shortcuts is not acceptable by users.
    Please let us know the solution if any

    Hi Sarah ,
    You can right click on the link and choose properties and then in the actions tab you can select the desired action you want .
    You will get a list of various actions specifying how and where do you want to open that link.
    Try this and let us know how it goes.
    Regards
    Sukrit Dhingra

  • Open view in new browser window

    Hi all,
    I have got a webdynpro-application, which contains two windows and two views.
    Actually each window contains one view. The second window is opened as a pop-up-window right now.
    Instead of the pop-up, I just want to open a new external browser window which contains the view.
    Moreover the context of the external browser window has to exchange data with the application itself.
    Does anybody know how realize this?
    Thank you in advance.
    Kind regards, Patrick.

    can help
    some information
    String strURL = WDURLGenerator.getApplicationURL("WebDynpro_PATH", "WindowApp");
    Now u can use this strURL for opening your external window.
    wdControllerAPI.getComponent().getWindowManager().createExternalWindow(strURL,"TITLE",false);
              IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("CallTreeWindow");
              //create the "AddressbookWindow"
              IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
    WDWebContextAdapter.getWebContextAdapter().getParameter("param");
    WDWebContextAdapter.getWebContextAdapter().getRequestParameter(key)
    you should call not "http://www.google.it" but result of something like this:
         public static String resolveURL(String dcName, String applicationName) throws EntryNotFoundException, WDURLException
              IWDDeployableObject deployableObject = WDDeployableObject.getDeployableObject(dcName);
              if(null!=deployableObject && WDDeployableObjectState.STARTED.equals(deployableObject.getState()))
                   boolean found = false;
                   int i = 0;
                   WDDeployableObjectPart[] parts = deployableObject.getParts(WDDeployableObjectPartType.APPLICATION);
                   if(parts!=null)
                        for(;i<parts.length;i++)
                             if( applicationName.equals(parts.getShortName()))
                                  found = true;
                                  break;
                   if(found)
                        return WDURLGenerator.getApplicationURL(parts, null);
                   else
                        throw new EntryNotFoundException( "Application '" + applicationName + "' not found" );
              } else {
                   throw new EntryNotFoundException( "Application '" + applicationName + "' not found in '" + dcName + "'" );

  • Printing pdf without opening new browser window

    Hi,
    How can i print (locally) multiple pdf generated on the server without having to open acrobat in the browser ?

    Same here.
    Worked fine under IE5.x to IE6, JRE 1.3.x to 1.4. OS used were W2k and WinXP, no prob here.
    Now on some PCs the windows don't pop up anymore. No exception, no indicator of what's going wrong.
    Any hints?
    J�rgen

  • Displaying PDF in new Browser window

    Hi all,
    I have a question about displaying a invoices in pdf format in a new window. I read several threads about this, but I haven't been able to solve my problem.
    I'm using following code:
    append the pdf to the response
      cl_wd_runtime_services=>attach_file_to_response(
        i_filename  = 'test.pdf'
        i_content   = lx_pdf
        i_mime_type = 'application/pdf'
        i_in_new_window = ' X'
        i_inplace       = 'X' ).
    The content (lx_pdf) is retrieved from a smartform, via the function module for the smartform in question, after which I convert the OTF Data (JOB_OUTPUT_INFO-OTFDATA) to XSTRING using FM SCMS_TEXT_TO_XSTRING. The returned data (buffer of type xstring) I use for afore mentioned method. But all I get to see is the following:
    //XHPLJIIID    0700 00000000001
    IN04EZZ_MO_SMARTFORM_TEST
    IN05TEST_PAGE_1
    OPDINA4   P 144  240 1683811906000010000100001
    IN06MAIN
    IN06TEXT_TEST1
    MT0168902156
    CP11000000E
    FCCOURIER 120  00144 SF001SF001110000144E
    UL +0000000000000
    CT00000000
    ST0590441This is a text page for displaying PDF in a
    MT0168902396
    ST0547238new window
    MT0168902636
    ST0460832called from within a WD application
    MT0168902876
    ST0144010Application
    EP
    The text is correct, but it is not displayed as PDF in new window, and of course I'm not interested in all the formatting codes in front of every line??
    I should be possible to display a pdf in a new browser window without having installed everything needed for Adobe Interactive forms, or isn't it??
    Kind regards,
    Micky.

    Hi Micky.
    If you have the spool number of the printed billing document you can use
    component WDK_SPOOL_TO_PDF in order to display spool as PDF.
    Just transfer spool number and format to default inbound start up plug.
    Cheers,
    Sascha

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

  • Open URL Link in new browser window

    Can someone please help me? I've tried to use code as if I were using Dreamweaver without any luck(i.e. blank target).
    Is there a way to make the url in the PDF open a new browser windows once clicked? Hopefully this is an easy fix! Thanks in advance!

    Jono, if you are still out there.  I am also having trouble with this function.  The button works just fine, but it does not open another browser window.  I am trying to keep my pdf open, and send them to a url.  That way they can come back to the form. Like you would with the target="_blank" function in javascript.
    What am i doing wrong?  I have tried opening the script editor, but I am not sure what to do there. So I put the same as you did on your form, no effect.  I put target="_blank" and set it to javascript on just about every option.  I have tried to go into the code on the xml source tab, no luck anywhere.  I have tried to just use a text field, no luck.
    Seems like everything I have tried has no effect.
    Hopefully you can tell me it is something simple...
    Thanks in advance.
    Jodi

  • How to open new browser window on click of command button

    Hi,
    We have a requirement to open an image in new window when a command button is clicked. Is there any sample explaining how to do that?
    Thanks in Advance,
    Pradeep

    Hi,
    I have to load an applet viewer in the new browser window. I have URL to the PDF.
    I ma able to load the applet viewer in new browser window using javascript. But I have to load the new PDF if the same window in already opened.
    The issue here is , i am loosing the window handle if the parent page is refreshed. I want to store the window handle in session scope variable and use the same.
    How do i update the session scope variable using javascript?
    Thanks and Regards,
    Pradeep

  • Calling a new Browser Window from Web Dynpro Application - Empty Context

    Hello,
    I want to open a view in a new browser window, and followed the same way which is described in this thread:
    Open view in new browser window
    My first try was creating two applications, which refer to the same Component Controller. The opening of a new browser window is triggered by an action, which is called in the other application. As both applications have the same Component Controller, I thought, the context content has to be the same, but actually the context attributes are empty after opening of the new window.
    In my second try I created two applications with two different Component Controllers, mapped via embedded Interface Controller. The effect is the same - I have no context content in the view.
    Please, can anybody help me?
    Thank you in advance.
    Ilona Seifert

    I done something like this:
    [code]
    try {
    strURL =
         WDURLGenerator.getApplicationURL(
                        "$<b>PROJECT_PATH</b>$/$<b>PROJECT_NAME</b>$",
                                            "$<b>APPLIC_NAME</b>$");
    } catch (WDURLException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
    strURL += "?par1=";
    strURL +=  var1;
    strURL += "&par2=";
    strURL +=  var2;
    strURL += "&par3=";
    strURL +=  var3;
    [/code]
    and after i retrieve them:
    [code]
    Var1Value= WDWebContextAdapter.getWebContextAdapter().getRequestParameter("var1");
    [/code]

  • How to make firefox open a URL in a PDF document which is loaded using Adobe PDF viewer in firefox to always in a new browser window ?

    Hi
    I have a web application which would enable users to see a list of PDF document on the web page and when the user select the PDF document, it will be open by a adobe PDF viewer.
    Within the content of the PDF document, it will contact URL links to some other portal web pages which we would like these other web pages to be open in a new browser window, but our testing shows that the new web pages may not always open in a new browser window.
    Could you help to advise how I can enforce that new web pages that are clicked from the PDF document can always be open in a new firefox browser window ?
    Thanks in advance.
    Regards
    Sen Lee

    Hello,
    In order to change the default reader for PDF files (to not open PDF files with Firefox's internal PDF reader), follow these steps:
    #Go to ''Tools'' > ''Options'' (or ''Firefox'' > ''Options'').
    #In the Options window, select the ''Applications'' tab.
    #In the ''Search'' field, type ''PDF''. You should find ''Portable Document Format (PDF)''.
    #On the right handside you should find an ''Action'' column. Use that to select your favorite PDF reader. In order to view PDF files in Firefox, choose ''Preview in Firefox''.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Command to open a PDF generated Oracle Report in New browser window

    I know this is probably something for the Oracle Forums but I'll ask anyway because I can't find any info out there on this, without some extra work.
    I am generating a PDF file from 10g Oracle reports on Linux RHEL 5 and storing the PDF file to the server. I can send that PDF file directly to a printer with the "lpr" command and that part works fine.
    What I'm wanting to do now is "View" the PDF from within the server in a new window. We are using RHEL 5 (Linux) platform and I'm trying to see if there is a way to open the file with a "command line" command that will open it in a new browser window or new window period (opening it with Adobe Acrobat).
    Does anyone have a command that will do this? Otherwise, how has everyone else been handling this. The idea of just viewing the previously generated PDF Report file will save us overhead on our database servers because they won't have to re-run some of the same reports over and over.
    Any help and assistance is appreciated.
    Chris

    Several options:
    - If you only want to show the pdf to the client without printing, use destype=cache and use WEB.SHOW_DOCUMENT after the RUN_REPORT_OBJECT (for examples search the forms-forum, there are lots)
    -If you have to generate the pdf to a file to get it printed, you could
    +use WEBUTIL_FILETRANSFER.AS_TO_CLIENT after the printing to transfer the file to the client, then use CLIENT_HOST to view it.
    +map the appserver-directory you generate the report to as a virtual directory in the application-server then use WEB.SHOW_DOCUMENT to directly access the generated file via url.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Discoverer Viewer Open Link in New Browser Window

    We have created cubes with links to details (using Manage Links).
    When selecting the link from Discoverer Plus OLAP, a new browser window opens.
    When selecting the link from Discoverer Viewer, it opens within the same browser window.
    How can we force Discoverer Viewer to open a link in a new browser window?
    We tried adding the TARGET="_blank" to the link but that only gets added to the last parameter (or passed as a parameter).
    Unlike Discoverer Plus parameter, there is no _popup option.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    This article by Ted Padova will give you the JavaScript code that will accomplish this: http://acrobatusers.com/blogs/tedpadova/opening-pdfs-new-browser-windows

  • Download blob as pdf. Display inline in new browser window

    I am using the standard functionality of loading blob data, using a browse/upload item, and retrieving blob data using a report on a blob column. One of the settings when setting up upload and retrieval column attributes is called "CONTENT DISPOSITION". If I set it to "INLINE" the file downloads when clicking the "DOWNLOAD" link and displays in the appropriate viewer, e.g. for PDFs it's the browser window. How do I get the PDF file to display in a NEW browser window so the user does not have to leave apex?
    Paul P

    Alternatively, do pdf's already render in the browser window?
    http://www.mydigitallife.info/2007/06/17/disable-pdf-from-opening-in-web-browser-ie-firefox-opera-safari/
    Trent

Maybe you are looking for

  • How to copy movies to PC

    Hi,   i) I had shot some movies through my Iphone 4S. I am not able to copy all of them (through scanner & camera wizard) to my PC and some are getting stuck. Pls. help me on how I can copy them (like drag & drop etc.). Error message "current picture

  • Permanently stuck in headphone mode?

    is it supposed to change back into speaker mode when i unplug the headphones? because i unplug the headphones and it still says when i adjust the volume "headphones" and it wont even play the audio when i answer calls. only through the headphones. is

  • Content Server Explorer is not available after sucessful installation of Plumtree Portal

    Content Server Explorer is not available after sucessful installation of Plumtree Portal. Please reply us.

  • My indesign form wont import

    i get an error when trying to import my indesign pdf form, it worked fine and i made some changes to it and now i get erro can't import as unable to parse. what generally causes this? the error is a bit pointless as it doesnt state what it cant parse

  • PDF Maker hangs

    Hi All, I have been experiencing an ongoing problem with Adobe Acrobat Standard 8 every since I originally installed the program. The problem is that PDF Maker hangs when I try to create a PDF file from Word. This only occurs when I am signed-in as "