Open PDF directly in WD

Hello,
my purpose is to open a pdf file directly without getting a dialog box. How can i do that? Until now i used the following code:
     IWDWindow newwindow = wdComponentAPI.getWindowManager().
          createExternalWindow(mainUrl2,"Document Preview",false);
     newwindow.open();   
The pdf is not stored local. I get the url from the Web As.
regards,
sharam

Hi Stefanie,
how can I use the following code, if I have to get my document from the Web As. The location of my pdf file is:
url:http://testSystem:1009/sap/bc/contentserver/800?get&pVersion=0046&contRep=L1&docId=E04B5F341751CE4399B1B91738F5D02A
So i can not use the following code:
     pdfUrl =
          WDWebResource
               .getWebResource(wdComponentAPI.getDeployableObjectPart(), WDWebResourceType.PDF, "<pdf file name>.pdf")
               .getURL();
If I bind my url directly to the context of my ui I get the window dialog box and that is not my purpose.
Thanks for your replay.
regards,
Sharam

Similar Messages

  • Unable to open PDF directly if user use Acrobat 8

    Unable to open PDF directly if user use Acrobat 8.
    We are facing some problems in our production site. When user click PDF icon, "FileDownload" windows pops up, but it only has "Save" or "Cancel" button, so user needs to download and save the file to open.
    I tested the following scenario using
    We have facing problem with this visions IE 6.0 – Acrobat 8.0 and IE7.0 – Acrobat 8.0.
    Mozilla 2.0 – acrobat 8.0 working fine. The pdf contents are embedding fine the browser window
    Does anyone have any experience with something of this nature?

    I must have missed the announcement - when did these forums change from Java language to IE/Adobe/Mozilla forums?

  • Can't open pdfs direct from firefox, have to save it and then open with reader.

    cant' open firefox pdfs direct
    == This happened ==
    Every time Firefox opened
    == about the last time there was an upgrade

    Hi Nikoo,
    Are you opening the PDF files in Reader or Acrobat (or in a web browser)? If you open in Reader, there are different options on the Tools panel from what you see in Acrobat. If you need to edit a PDF file, make sure that you open it Acrobat.
    Best,
    Sara

  • How to open pdfs directly in acrobat reader client side without using browser

    When I sent a request to the pdf through servlet
    the requested pdf is coming in a browser , but I want it to open in acrobat reader only . Is it possible ?

    Hi,
    Yes you can open in acroread. I am not sure about syntax. Cheak it in API's of java.lang.
    It is somehow like this.
    System.exec("<location of acroread>",<pdf file name>);
    Check if it helps.
    Thanks
    Parsu
    iAS dev support team

  • Opening PDF Files in Adobe Reader XI directly from SharePoint 2013 Site

    I am trying to open PDF files in Adobe Reader XI directly from a SharePoint 2013 document library using Internet Explorer 11. When I click the file name it immediately opens the file in Adobe Reader, however it is downloading and opening the file locally
    from the Temporary Internet Files location. If I add a comment to the PDF file, and save it will perform a Save As and the location will default to the temporary folder.
    If instead of clicking the file name, I click the ellipses in SharePoint, copy the file URL, and go to Adobe Reader, click File > Open and paste the link into the file name, Adobe Reader will correctly open the file directly from the SharePoint site and
    prompt for "Open and Checkout, Open, or Cancel".
    Is there a way to get it so that when I click the file in IE, I get the same functionality as a File > Open in Adobe Reader?
    Thanks in advance!

    Hi,
    According to your description, you want to open pdf file in the Adobe Reader directly from document library.
    I suggest you do as the followings:
    1. In SharePoint Central Administration site, click Application Management->Manage Web Applications, select the web application for the site. Click Authentication
    Providers, select default zone, and select Yes for "Enable Client Integration?".
    2. click Site Settings-> Site collection features->"Open Documents in Client Applications by Default" click Activate
    3. set the default open behavior for a document library by using the document library settings page.
    4. Enable the “Adobe Arcobat SharePoint OpenDocuments Component”add-on in the IE11.
    5. Add your current site URL to the trusted web sites in IE11.
    There is a similar threads for your reference:
    http://blog.mikehacker.net/2010/05/03/unable-to-open-pdf-directly-from-sharepoint-2010/
    Thanks,
    Wendy Li
    TechNet Community Support

  • Opening a pdf directly from menu

    Hi All,
    I wanted to know that can we open pdf directly from menu.?
    I wanted steps regarding how to attach link/url/function to menu so that I can directly open pdf file.
    Thanks

    Hi,
    Please see if these documents help.
    Note: 332500.1 - How To Call An HTML Webpage From 11i Navigator Menu
    Note: 100180.1 - How to Launch a URL From the Navigator Menu
    Regards,
    Hussein

  • How can I open pdfs with Acrobat directly from Firefox (Android)?

    I would like to open pdfs directly with the Acrobat reader app, without downloading it (& saving it in the downloads folder). When I open a pdf, FF offers me several apps or a download, but not the Acrobat Reader, also Acrobat it mentioned as the standard application for opening pdfs.

    The file must be downloaded for Adobe reader to be able to display the file. There is no way to display any file without downloading it.

  • Why can't I open pdf files with Safari 7.0.6 and OS 10.9.4?

    I have just upgraded to Mavericks from OS 10.6.8. When I attempt to open a pdf file in Safari, I get the following message:
    Abobe Reader
    Before viewing PDF documents in this browser you must launch Adobe Reader and accept the End User License Agreement, then Quit and relaunch the browser.
    Well, I must have already accepted the Agreement because I can open pdfs directly from Adobe Reader and from other browsers. Why doesn't can't I open them from Safari?
    Don

    Launch Adobe Reader from your Launch Pad. Then accept the end user license agreement.
    I found that suggestion here >   ADOBE - ACCEPT END USER LICENCE AGREEMENT

  • Opening PDF files in Reader itself takes a long time

    When I try opening PDF Files in Reader itself, this process takes a long time (more then 2 minutes for opening PDF files).
    When I try opening PDF Files directly from My computer, My documents: no problem (direct opening).
    Running Reader XI on Windows XP SP3.

    Hi,
    According to your description, you want to open pdf file in the Adobe Reader directly from document library.
    I suggest you do as the followings:
    1. In SharePoint Central Administration site, click Application Management->Manage Web Applications, select the web application for the site. Click Authentication
    Providers, select default zone, and select Yes for "Enable Client Integration?".
    2. click Site Settings-> Site collection features->"Open Documents in Client Applications by Default" click Activate
    3. set the default open behavior for a document library by using the document library settings page.
    4. Enable the “Adobe Arcobat SharePoint OpenDocuments Component”add-on in the IE11.
    5. Add your current site URL to the trusted web sites in IE11.
    There is a similar threads for your reference:
    http://blog.mikehacker.net/2010/05/03/unable-to-open-pdf-directly-from-sharepoint-2010/
    Thanks,
    Wendy Li
    TechNet Community Support

  • How can i set Adobe to open pdf from a secure website in the browser, it just pops up and asks to open save or download. we want it to just open the PDF directly in the browser with no popups, using IE 11

    Hi,
    We are running Internet explorer 11 with the latest version of Adobe Reader.
    have found when users login to a secure website and it has pdf links on there, it doesnt open these pdf directly in the browser, it wants to save them and then open them.
    is there anything we can change to allow them to be opened directly in the browser? 
    Thanks,
    Cam

    Hi campbellk19046717,
    Please refer the KB doc link mentioned below if that might help:
    Acrobat Help | Display PDF in browser | Acrobat, Reader XI
    Let me know.
    Regards,
    Anubha

  • Adobe PDF direct open in internet explorer problem

    Hi all,
    I have a problem when I want do download a pdf byte stream created by Jasper Reports. I read the necessary information out of my formbean (Struts). Here's the code from the jsp:
    response.setContentType(runReportForm.getContentType());
    String filename = runReportForm.getTechName() + "." + runReportForm.getMode();
    response.setHeader("Content-Disposition", "attachment; filename='" + filename + "'\"");
    byte[] bytes = runReportForm.getBytesOutput();
    response.setContentLength(bytes.length);
    ServletOutputStream ouputStream = response.getOutputStream();
    try {
            ouputStream.write(bytes, 0, bytes.length);
            ouputStream.flush();
         ouputStream.close();
    } catch (IOException e) {
    }The content type for PDF is "application/pdf" or "application/octet-stream", of course.
    Normally, it should open a download dialog with the question "Open" and "Save". In this download dialog is the Adobe icon displayed, too.
    But in my case, I get the dialog with an empty (like unknown file format) icon, but the text says "Adobe Acrobat Document". When I click to open it directly it will open in a separately Adobe Acrobat window instead of displaying in the internet explorer. (Saving to the hard disk works fine).
    Of course I have set the setting "display inside browser" in the options of my Acrobat Reader.
    The same procedure with Excel (content type "application/vnd.ms-excel") makes no problems.
    Thanks for any help.
    Manuel

    If you want to open the PDF in the browser you have to explicitely set the content type to "application/pdf", if you use "application/octet-stream" you'll always get the download box and when you choose to open from this box the reader will be used because the reader is configured to open PDF documents in the windows filetypes settings.

  • Open a pdf directly in IE11 (ACrobat Reader VI, Windows 8.1)

    Hello!
    We use Acrobat Reader, Windows 8.1 and IE11 in our company.
    Unfortunately no user is able to open a pdf directly with IE11.
    Instead of opening the pdf there is a popup which asked what to do with the pdf -open, save or saveas
    I couldn't find a way to setup a default action (open)
    In earlier versions it was possible to set the option "open in Browser".
    This option is missing in AR11.
    But why?
    How can i set the deafult action?
    thx

    Hello together!
    the problem was still there, so i decided to modify my search.
    Fortunately i found a technet-post, which described our problem.
    The following solution worked in our enviroment. PDF-documents will now be opened directly in IE11.
    In Windows 7 (also Win8.1!!!!!), there is not the key AttachmentExecute by default. For this reason, Checkbox for "always ask before opening this type of file" is missing in the Download prompt window.
    Actually, you can choose to add this key in your Registry by following txt, Copy them to notepad, then renamed as .reg file. After that, import to Registry.
    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\AttachmentExecute\{0002DF01-0000-0000- C000-000000000046}] 
    " AcroPDF.PDF.1"=hex(0):
    Many Thanks to Roger Lu from the technet community support!

  • How can I make chromium to open PDF files directly in okular?

    Hi all,
    I switched from firefox to chromium and there is one thing that I would like to have solved: At the moment, the only way to open PDF files from the web is to first save them locally and open them afterwards from the chromium statusbar or from the chromium downloads tab (chrome://downloads/). Is there a way to configure chromium to open PDF files directly from a remote URL in okular?
    Thanks in advance & kind regards,
    jamesbond007.

    Yes, I would like to know that as well. Here it tries to open pdf files with the adobe plugin but fails (grey window). It's especially annoying with javascript links that do not allow to use "save as".
    David

  • How do I make safari web page go direct to "Open pdf in preview" without having choose it manually

    how do I make safari web page go direct to "Open pdf in preview" without having choose it manually

    Well crap!  Internet explorer goes direct to actual pdf, would'nt you know it, safari wont!  I will have to change my pdf order form to include instructions on how to find that toggle thing at the bottom so it wont wig out safari users.
    Kind of *****, if people dont know they have to click the open in preview choice, my form wont work.
    Thought maybe it was an HTML issue that could be overidden.
    Thanks for your answer.
    LeeCM

  • RE: [Adobe Reader] when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? i

    HelloThank's for your helpsI hope this document is helpfulBest Regards,
    Date: Sun, 22 Jun 2014 17:10:17 -0700
    From: [email protected]
    To: [email protected]
    Subject:  when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th
        when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help m
        created by Anoop9178 in Adobe Reader - View the full discussion
    Hi,
    Would it be possible for you to share the document?
    Regards,
    Anoop
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6485431#6485431
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
         To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

Maybe you are looking for