Open PDF document through JavaFX

Hello All,
I want to open pdf document when user clicks on "Help" link in JavaFX. PDF document is usually locally stored on user's machine.
How I can achieve this ?
thnx in advance,
Venky

Will it work for Linux ?No, of course.
I think you must do something like:
var params = [ 'cmd', '/c', pdfFilePath ]; on Windows
var params = [ 'open', pdfFilePath ] on Mac
var params = [ 'gnome-open', pdfFilePath ] on Linux with Gnome
var params = [ 'kde-open', pdfFilePath ] on Linux with KDE
then your Runtime.getRuntime().exec(params);
You can catch exceptions if you are not sure of the platform (particularly Gnome vs. KDE): if raised, try something else...
That's how Processing does its open() function. (Untested in JavaFX...)

Similar Messages

  • Why I ca not open my document through adobe today ugent ??

    why I can not open my documents
    through adobe today ?

    This is a web forum not a chat room. Why did you mark your question as the answer?
    You still haven't given us much to go on? Are you opening these files from a website (clicking on a link)? I'm assuming they are pdf files, correct? If so, what web browser and operating system do you have?
    Remember, we aren't sitting there in the room with you so you need to be descriptive and answer all questions...

  • I am having a problem opening pdf document.  I get error message: "Adobe Reader has stopped working"

    I am having a problem opening pdf document.  I get error message: "Adobe Reader has stopped working" then I get Windows is looking on line for a solution, but then my document closes. I tried uninstalling and reinstalling Adobe Reader XI, rebooted my computer but this did not help.  I get the same message. What to do?

    Can you open Reader by itself?  If so, check if disabling Protected Mode improves the situation [Edit | Preferences | Security (Enhanced)].

  • I installed Firefox 3.6. Since then, I am unable to open pdf documents in Firefox. I get a black page. I tried opening the same document in Internet Explorer. It worked fine. I recently installed Nuance's pdf reader and thought that might be the problem.

    I installed Firefox 3.6. Since then, I am unable to open pdf documents in Firefox. I get a black page. I tried opening the same document in Internet Explorer. It worked fine. I recently installed Nuance's pdf reader and thought that might be the problem. Uninstalled it. Still have the problem with Firefox.
    == This happened ==
    Every time Firefox opened

    How about if you right click on the PDF and select Save Link As..., and then open it locally from within Reader? Does it work ok then?  That might be a workaround until the issue within the browser is resolved.
    Rob Jaworski
    Intl Program Manager

  • 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

  • Can not open pdf documents...

    can not open pdf documents..., when i use my laptop without restart two,three day's....???????
    why is that ??????????

    AmS-Haz wrote:
    I mean, when I install the Adobe Reader 8 previous problem occur, as same as Adobe Reader 9, I did not use or install Adobe Reader 8 &
    Adobe Reader 9 both are concurrently....
    Do you have, or have
    had, both Reader 8 and Reader 9 installed
    at the same time in your machine? If you have, you must
    do as graffiti
    suggested in a previous message.
    Extra line breaks kindly provided by the software.

  • Adobe Reader 11.0.03.37 hangs and freezes opening PDF documents

    When opening PDF documents with Adobe Reader 11.0.03.37, it hangs and freezes for a few minutes.  Is anyone else experiencing this and is there a fix or work around?
    We have Windows 7 Professional 64-bit operating systems.  It takes a moment for the Adobe Reader to unfreeze itself but will eventually.
    Thanks!

    Found a fix for my problem.  It wasn't the Protected Mode issue after all.  The fix is to disable In Product Messaging.
    Here is the fix for the problem.  Now maybe Adobe can address this issue in the future release or patch/update.
    Try it on yours and see if it doesn't fix it also.
    The following below link provides the information I am about to share with you.
    But open Adobe Acrobat Reader without opening a PDF file. So just open Adobe Reader application by itself.
    1. Click on EDIT
    2. Click on PREFERENCES
    3. Click on GENERAL Category
    4. UNCHECK "Show me messages when I launch Reader"
    5. CHECK "Don't show messages while viewing a document"
    This should fix your problem as it fixed mine. See the link below for more information. Looks like I will be doing a regedit script for our network users to get rid of this problem. UGGGHHH!!!!!!
    Hope this helps!
    http://www.adobe.com/devnet-docs/acrobatetk/tools/PrefRef/Windows/IPM.html?zoom_highlight= IPM

  • Opening pdf documents in SOLAR01

    Hello All,
    Is there a way to open pdf documents in SOLAR01.
    If I try this now, an internet browser is opened which after a while will show:
    <i>The page you are looking for is currently unavailable</i>
    1) is it so that the solmandocumentation service needs to be enabled to show pdf documents.
    2) is there a way to open pdf docs in adobe reader directly (without IE).
    Thanks for the help,
    Jurjen

    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.

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

  • 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

  • Uable to open PDF document in proper format on blackberry browser

    We are trying to open a document hosted in MOSS document library using blackberry browser. The document type can word, excel, power point, pdf. But when we are trying to open PDF document using blackberry browser the document is displayed as long string of text message rather than PDF document and strips all the formatting.
    But if we email the same document and try opening that in blackberry then it works fine. Please share your thoughts, how we can properly render these documents on blackberry browser. Because this is a show stopper for our solution approach in which user can open any document on his blackberry.

    mreynaud wrote:
    I read your post on Blackberry Support Forms and I'm wondering if you ever found a practical solution to opening PDF documents in the Blackberry Browser?
    mreynaud, did you read my answer dated 04-22-2009 12:45 AM ?
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • A friend wants me to put together on booklet that's been done in excel. I'm on a mac os 10. Do I need to download microsoft excel for mac or can I open the document through indesign?

    A friend wants me to put together on booklet that's been done in excel. I'm on a mac os 10. Do I need to download microsoft excel for mac or can I open the document through indesign?

    I second LibreOffice as it's the most recent fork, however NeoOffice and OpenOffice will also work.
    Just say No money to Redmond!
    Also the old Ready Set Go! will be having a Lion version out soon.
    It's a low cost page layout program (like Indesign but without the high price) and can make booklets etc better, import the excel grpahics from LibreOffice.
    http://www.diwan.com/ready/prsg.htm

  • Can I set up safari to automatically open PDF documents in the pages app?

    Can I set up safari to automatically open PDF documents from the internet into the pages app?

    No - and you can't open pdf files in the Pages app on the iPad anyway as far as I know. You can export a Pages file as a pdf but you can't open them in Pages.

  • How to iterate the opened pdf document?

    How to iterate the opened pdf document?

    Thanks for your response. Could you please advise me how to call a following "DocExistEnable" method.
    static ACCB1 ASBool ACCB2 DocExistEnable(void *data)
    if (AVAppGetNumDocs() <= 0)
    return false;
    else
    return true;

  • Downloading and Opening pdf documents

    I cannot either download or open pdf documents.
    I am receiving this error message: instruction at 0x6c61e referenced memory at oxoooooooo.  the memory could not be read.
    This is causing google.com to not respond.

    Hi Jerseyjoe1933,
    This seems to be an error with the OS.
    Please refer : http://answers.microsoft.com/en-us/windows/forum/windows_7-performance/the-instruction-at- 0x01764b69-referenced-memory-at/e2df405a-a3e5-4bfc-8721-5aa7929cc5c7
    When was the las time it worked fine.
    What is the Acrobat / Reader version you are using and on which OS?

Maybe you are looking for

  • Itunes won't sync to my iphone 4s, help!

    After the ios7 update, my entire music library showed up on my iphone.  I don't want most of these songs on my phone, so I tried to sync after unselecting the songs.  The sync seems like it had worked, but when I go to music on my phone, they are sti

  • Remove aperture library

    Hello, i've made a copy of my aperture library to dropbox, so i would be able to work on both my macbook air and the imac. This works but now i have an old, unused library on my imac wich is taking about 50 Gb of my hard disk. When i try to remove th

  • How could I Write data into a field in Oracle whose data type is VARCHAR2

    The target data I want to write into Oracle is in http://tw.yahoo.com/info/utos.html. Now, these data is stored in Mysql database and the field which stores these data uses "Text" as its data type. I want to derive these data from mysql database and

  • My selection tool doesn't select shape directly, only the path of the shape.

    When i'm working in Illustrator and I want to select a shape, it is making me click on the path of the shape instead of just inside of it. The shape does have a filling so that isn't the problem. It seems to have just recently happened as well.  I tr

  • SRSS 4.2 + SRWC 2.2  - uttsc crashing

    Any idea why this is happening: Aug 6 18:03:22 kiosk:uttsc[11278]: [ID 702911 user.notice] X Error of failed request: BadValue (integer parameter out of range for operation) Aug 6 18:03:22 kiosk:uttsc[11278]: [ID 702911 user.notice] Major opcode of f