Open PDF-File (with LinkToURL or what?) !

Hello@all,
I have a PDF-File, which I have stored in my project like a image
(->src->mimes->Components->com.sap.....Comp--->Help.pdf
In the View of this Component I want to have a LinkToURL or something else to open the PDF file with adobe.
Can someone help me for this?
Best regards
Marcus

Hi,
   You can alternatively open Pdf using the following logic
String pdfLink = <Your Link>
FileInputStream fileIn = new FileInputStream(pdfLink);
int lastIndex = pdfLink.lastIndexOf(Constants.PATH_SEP);
String saveFileName = pdfLink.substring(lastIndex);
IWDResource resource = WDResourceFactory.createCachedResource(fileIn, saveFileName,WDWebResourceType.PDF,true);
String url = resource.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal());
wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,saveFileName).show();
Hope this helps.

Similar Messages

  • I cannot open PDF files with my Mountain Lion system. What APP's do I need?

    What Apps do I need  to open PDF files with Mt. Lion installed?

    Double-click the PDF and it should open in Preview.

  • I can't open PDF files with adobe flash player

    I have installed it and whenever I try to open pdf files it says I need to agree with your liscens and you do that automatically when you download it. I have followed all your instructions on your website and uninstalled it and installed again, but I can't open pdf files with it. I don't know what the problem is exactly, but it's really frustrating..

    Flash Player CANNOT open PDFs because they AREN'T Flash Documents.
    Adobe Reader opens PDFs.
    To accept the license agreement (NOT the one you accepted to download or install - the one for USE)
    Windows:
    Go to: C/Program Files(x86)/Adobe/Reader 11.0/Reader and double click the eula.exe file. The license agreement will open for you to accept.
    Mac:
    Go to: Mac HD/Applications and double click the Reader app. The license agreement will open THE FIRST TIME you open it.

  • Cannot open pdf files with Firefox's built-in pdf viewer

    This just started (I think) with Firefox 37.01. This is on Win7-X64. I cannot open pdf files with the Firefox built-in pdf viewer. If I click on the file or try to open it from within Firefox, it brings up a "opening filename.pdf" message. If I select the "Open with" radio button as 'Firefox (default),' it just keeps looping on this process; it never opens. In Tools => Options => Applications, Portable Document Format (PDF) is indicated as 'Preview in Firefox.' I've never had any other PDF viewer installed on this computer. I've tried disabling all plug-ins and extensions, but it still doesn't work. I searched for solutions but haven't found any for this specific issue.
    Thanks for the help.

    Hello,
    Have you tried, to start Firefox in safemode you can do so by following these steps
    '''If Firefox is open,''' you can restart in Firefox Safe Mode from the Help menu:
    * Click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    '''If Firefox is not running,''' you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".
    ;[[Image:SafeMode-Fx35]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, theme, or hardware acceleration. Please follow the steps in the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • Why can't I open PDF files with Adobe Reader in Google Chrome?

    Suddenly I cannot open PDF files with Adobe Reader when I am in Google Chrome. I have installed up to date versions of both. What is happening?

    http://blogs.adobe.com/acrolaw/2011/12/get-reader-or-acrobat-to-work-in-chrome-compact-pdf -output-from-chrome/

  • How do I get firefox to open pdf files with Adobe reader instead of google?

    Firefox is unsucessfully using google to open pdf files.  How do I get firefox to open pdf files with Adobe reader?
    Message was edited by: veeryTalonted

    "Google" is a search engine (website) and NOT (repeat: NOT) a PDF viewer. It can't and won't open PDFs in any real or imaginable way.
    Firefox added their own proprietary PDF viewer with version 20 - they're on 21 now. I'll be the first to admit "it sucks". You CAN'T fill in PDF forms with it, and you can't email them from the page like with Opera, Safari or Chrome (which use the reader plug-in still).
    Unfortunately, the ONLY option you have now that they've added it and killed the ability for the Reader plug-in to work with Firefox, is Tools>Options>Applications - select Portable Document Format(PDF) and choose "Use Adobe Reader (Default)". What that will do is FORCE Firefox to download the PDF instead of opening it in their terrible PDF viewer in the browser window.
    Or... use one of the other browsers I mentioned. They're all free.

  • How [Insert|Add] Image into Opening PDF file with Acrobat SDK.

    Hi Guys,
    I'm trying to insert|add image file into opening PDF file with specified location (X|Y) and scale (Width|Hight) but got many of troubles
    If use third party like iTextSharp or something else thing become simple but i want to use Acrobat SDK to do this
    Any suggestion or idea?
    Any help appreciated.

    Thank for your interested.
    I use VB.NET and Acrobat
    Here is some my code:
    Try
       If File.Exists(T(0)) Then
       Dim AcroAVDoc As AcroAVDoc = Ap.GetActiveDoc
       Dim AcroPDDoc As AcroPDDoc = AcroAVDoc.GetPDDoc
       Dim AcroPDPage As Acrobat.AcroPDPage = AcroPDDoc.AcquirePage(Integer.Parse(T(3)))
       Dim data() As String = T(1).Split("^")
       Dim imgX = data(0)
       Dim imgY = data(1)
       Dim imgWidth = data(3)
       Dim imgHight = data(4)
       'TODO: insert into opening PDF file
       Return 1
       End If
       Catch ex As Exception
       End Try
    I don not know what to do next to insert an image (JPEG, PNG, ..) into PDF file.
    Can you show me or suggest some solution, idea?
    Thank in advance.

  • How do open PDF file with Adobe Reader?

    I failed to open PDF file with Adobe Reader? Please show how to fix it.

    Mac or Win? OS and Reader versions? Where is the file and how did you try to open it? What happened when you tried? Any error messages? Details, please.

  • Cannot open PDF files with Reader XI message appears Adobe Reader has stopped working

    Cannot open PDF files with Reader XI message appears Adobe Reader has stopped working. A problem has caused the program to stop working

    Which Operating system you are using?
    Can you open Adobe Reader by itself?  If so, try disabling Protected Mode [Edit | Preferences | Security (Enhanced)] and then try to open the file.

  • Unable to open PDF files with Adobe Reader, Mac trying to open files with Quicktime instead, but not succeeding. HELP!

    Unable to open PDF files with Adobe Reader, Mac trying to open files with QuickTime instead, but not succeeding. HELP!

    Hi BDAqua,
    Thanks for the info, I dragged a PDF to desktop ctrl-, get info. change all to open with adobe.
    Problem solved, many thanks for a quick response.
    Barry69

  • Can't open PDF files with IE10.

    I cannot open PDF files with IE10. I had other issues, as well, with IE10 so I went back to IE9. Then it was suggested that not updating to the latest edition of IE could lead to security issues and sure enough my computer was hacked shortly thereafter. Now I am back with IE10. How do I change the registry to be able to open PDF files?

    Please try turning Enhanced Protected Mode OFF in IE10 and see if it makes a difference.   Navigate to Internet Options, select the Advanced Tab, scroll down to the Security section, and uncheck the box that says "Enable Enhanced Protected Mode".

  • After installing a new motherboard, my imac opens pdf files with colorsync.  How do I reset it to open them with Adobe?

    After installing a new motherboard, my imac opens pdf files with colorsync.  How do I reset it to open them with Adobe?

    That makes sense Dennis.  I did that but was unable to find Adobe Reader in my Applications folder.  Of note though is that after a restart, the problem seems to have gone away.  So, disaster averted.  Thanks for responding though.  It's nice to have help on this stuff.
    D

  • Problem opening PDF files with adobe

    I cannot get adobe to open my pdf files. Not from internet nor from desktop.
    I downloads fine,. I have installed and reinstalled several times.
    If I try to open it looks like it opens but closes immediately. I tried to open adobe, but nothing. A grey screen and that's it. I cannot access the help button

    Yes, I finally got it working using number 2:-) Thank you very much
    2013/8/1 Pat Willener <[email protected]>
       Re: Problem opening PDF files with adobe  created by Pat Willener<http://forums.adobe.com/people/pwillener>in
    Adobe Reader - View the full discussion<http://forums.adobe.com/message/5557146#5557146

  • Open PDF file with Adobe Reader - Asks me what Firefox should do - every time

    Hi,
    Everytime I want to open a PDF file, Firefox asks me 'What should Firefox do with this file'.
    I have Open WIth Adobe Reader (default) selected and I have the 'Do this automatically...' box checked.
    So it seems to me that Firefox should not ask me every time.

    Hi - I don't want it to always ask; I want it to never ask.
    Having said that, I changed my option setting to 'always ask' and the next time I tried to open a PDF document, the dialog box opened asking me what to do. The 'Do this automatically...' box was unchecked as expected.
    I checked the 'Do this automatically...' box and now Firefox no longer asks.
    Weird way to solve the problem, but it appears to work fine now.
    Thanks

  • Problem opening pdf files with Adobe Reader in Windows 7

    I bought a new Dell (Inspiron 5110) with pre-installed Windows 7 Home Premium (Version 6.1 SP1, 64 bit) and pre-installed Adobe Reader X (10.1.1). I cannot open ANY of my old pdf files with the Adobe reader (even after I re-installed the Adobe Reader). On another computer with Windows 7 I get the same error message. When I installed several other pdf-readers (Sumatra, Foxit, ..) I can still not open the pdf's -- but all the pdf's still open under Windows XP on my old computer and they also open on all my colleagues' non-Windows 7 computers. So it appears to be a Windows 7 problem. The Adobe error message says 'Adobe Reader could not open _.pdf because it is either not a supported file type or because the file has been damaged (…..).
    N.B.: I can download pdf files from the internet and can then open these 'new' pdf files with Adobe Reader X.
    N.B.2.: Most of the 'old' pdf files are scientific articles downloaded from various journal websites 2002-2011, so their quality should be out of question.
    N.B.3.:I've transfered the files via memory stick and portable HD.
    N.B.4.: If I try to open the pdf's via 'Open with' the problem remains the same.
    N.B.5.: When, on my Win7 Dell, I've uploaded/attached one of these old pdf files to an email the rtecipient could not tead it. But he could read it when I'd sent the same file from my old Win XP computer.
    N.B.6.: I have repeated this last observation: When I upload an old pdf file on my Win7 Dell to my email account and then send it to myself, I cannot open/read it on my Win XP (nor on the Dell, of course). Although the file size is precisely the same.
    N.B.7.: When I download a new pdf on my Dell, then upload/attach it to an email also on the Dell and send it to myself, I can download and read the attached pdf on both computers.
    Would be grateful for any suggestions.

    This is really strange.
    Please correct me if I am wrong, but from what I can understand, any PDF which is launched on your Win 7 OS fails to open, even though the same file works perfectly fine on your Win XP machine?
    Could you please run a full system anti virus scan on the said PDFs that are present on your local system. It could be a case of infected PDFs.
    Also, it would be great if you could try and download some of the erroneous PDFs from the web again, and see if you experience the same behavior.
    Thanks
    Ankit

Maybe you are looking for

  • EHP5 Upgrade - Getting error in MAIN_NEWBAS/STARTSAP_NBAS

    Checks after phase MAIN_NEWBAS/STARTSAP_NBAS were negative! Last error code set: RFC call to subst_get_uvers failed with key RFC_ERROR_SYSTEM_FAILURE (open): SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed Connect_PM GWHOST=accagtci, GWSERV=sapgw

  • Can't get Videos to run on the Internet

    Can't get Videos to run on the Internet. Clicked to watch a video and nothing happened. Sales person in Apple store said to get "Flip4Mac", free edition, which is what they used in store as the files on this site and in Windows Media. I downloaded it

  • Urgent: Shut down when lid closes problem

    My Mabook pro / mid 2010 / Yosemite 10.10 shuts down when lid closes. This is new in the last few days, not after any system updates. It wont restart after lid opens again, unless repeatedly holding down power button for long periods. Strangely, the

  • Mixed up in airport, airport extreme and a snow B.S.

    Hello! I am trying to set up an airport base (snow) to allow me to run two macs from my DSL. My titanium DVI has the airport card that came with it (2nd generation).My iBook G4 800 has the airport card that came with it and it is a 3rd generation Air

  • Flex License Issue.....?

    HI All         We are testing the application using qtp. When we are testing the application we are getting flex license error after recording 30 test cases..                     I developed my application using sdk version 3.2.0 and i implemented li