Unable to open PDF document when run through task/workflow

Hi all,
I am currently usign a background method to send a smartform as a PDF document to all the agents who approve.
When i send the smartform in mail as a PDF documetn throught the task i get an error message when opening the PDF document which says that 'The file could nto be opened because it was either not a supported file type or because the file was damaged(for example, it was sent as an email attachment and wasn't decoded correectly'.
The below is the code i am using to send the smartform
{ CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname           = 'ZFI_ASSET_PDA_NOTIF'
    IMPORTING
      fm_name            = lv_form_name
    EXCEPTIONS
      no_form            = 1
      no_function_module = 2
      OTHERS             = 3.
  IF sy-subrc NE 0.
    MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.}
{ ls_ctrlop-getotf    = 'X'.
  ls_ctrlop-no_dialog = ''.
  ls_compop-tdnoprev  = 'X'.
ls_ctrlop-DEVICE = 'LOCL'.
  ls_ctrlop-preview   = 'X'.
  ls_ctrlop-no_dialog = 'X'.}
  CALL FUNCTION lv_form_name
    EXPORTING
      control_parameters = ls_ctrlop
      output_options     = ls_compop
      user_settings      = 'X'
      gv_prctr_txt       = gv_prctr_txt
      gv_cc_text         = gv_cc_text
      gv_class_txt       = gv_class_txt
      gv_lname           = gv_lname
      gv_fname           = gv_fname
      gv_position        = gv_position
      gv_initiator       = gv_initiator
      gv_bookcost        = gv_bookcost
      gv_bookvalue       = gv_bookvalue
      gv_date            = gv_date
      gv_prctr           = gv_prctr
      gs_anla            = gs_anla
      gv_emv             = gv_emv
      gv_cond            = gv_cond
      gv_operable        = gv_operable
      gv_action          = gv_action
      gv_justify         = gv_justify
      gv_replace         = gv_replace
      gv_replace_comment = gv_replace_comment
      gv_process         = gv_process
    IMPORTING
      job_output_info    = lt_job_output
    EXCEPTIONS
      usage_error        = 1
      system_error       = 2
      internal_error     = 3
      OTHERS             = 4.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE 'S'  NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  LOOP AT lt_job_output-otfdata INTO ls_otf.
    lt_otf = ls_otf.
    APPEND lt_otf.
    CLEAR lt_otf.
  ENDLOOP.
  CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
      format                = 'PDF'
      max_linewidth         = 132
    IMPORTING
      bin_filesize          = lv_len_in
    TABLES
      otf                   = lt_otf
      lines                 = lt_tline
    EXCEPTIONS
      err_max_linewidth     = 1
      err_format            = 2
      err_conv_not_possible = 3
      OTHERS                = 4.
Fehlerhandling
  IF sy-subrc EQ 0.
  ENDIF.
  LOOP AT lt_tline.
    TRANSLATE lt_tline USING '~'.
    CONCATENATE ls_buffer lt_tline INTO ls_buffer.
  ENDLOOP.
  TRANSLATE ls_buffer USING '~'.
  append ls_buffer TO lt_objbin.
DATA  lv_counter         TYPE i.
  DO.
    lt_record = ls_buffer.
    APPEND lt_record.
    SHIFT ls_buffer LEFT BY 255 PLACES.
    IF ls_buffer IS INITIAL.
      EXIT.
    ENDIF.
  ENDDO.
Attachment
  REFRESH:
  lt_reclist,
  lt_objtxt,
  lt_objbin,
  lt_objpack.
  CLEAR ls_objhead.
  lt_objbin[] = lt_record[].
lt_objhex[] = lt_record[].
  CLEAR lv_descp.
  CONCATENATE 'Asset'
              gs_anla-anln1
              'Approval details'
         INTO lv_descp
SEPARATED BY space.
Create Message Body
Title and Description
  CONCATENATE  'Please find attached the approval details of asset : '
               gs_anla-anln1
          INTO lv_mail_descp
         SEPARATED BY space .
  lt_objtxt = lv_mail_descp.
  APPEND lt_objtxt.
  CLEAR  lv_mail_descp .
appending space lines into text of mail.
DO 3 times.
  CLEAR lt_objtxt.
  APPEND lt_objtxt .
ENDDo.
CONCATENATE 'This is an automatically generated message.'
             'Please do not reply to this mail.'
       INTO lv_mail_descp
     SEPARATED BY space .
lt_objtxt = lv_mail_descp.
APPEND lt_objtxt.
  DESCRIBE TABLE lt_objtxt LINES lv_lines_txt.
  READ     TABLE lt_objtxt INDEX lv_lines_txt.
  ls_doc_chng-obj_name = 'smartform'.
  ls_doc_chng-expiry_dat = sy-datum + 10.
  ls_doc_chng-obj_descr = lv_descp.
  ls_doc_chng-sensitivty = 'F'.
  ls_doc_chng-doc_size = ( lv_lines_txt - 1 ) * 255  + STRLEN( lt_objtxt ) .
Main Text
wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 255 + strlen( i_objtxt ).
  CLEAR lt_objpack-transf_bin.
  lt_objpack-head_start = 1.
  lt_objpack-head_num = 0.
  lt_objpack-body_start = 1.
  lt_objpack-body_num = lv_lines_txt.
lt_objpack-doc_type = 'RAW'.
    lt_objpack-doc_type = 'TXT'.
  APPEND lt_objpack.
Attachment
(pdf-Attachment)
  lt_objpack-transf_bin = 'X'.
  lt_objpack-head_start = 1.
  lt_objpack-head_num   = 0.
  lt_objpack-body_start = 1.
  DESCRIBE TABLE lt_objbin LINES lv_lines_bin.
  READ TABLE lt_objbin INDEX lv_lines_bin.
  lt_objpack-doc_size = ( lv_lines_bin - 1 ) * 255 + STRLEN( lt_objbin ) .
  lt_objpack-body_num = lv_lines_bin.
  lt_objpack-doc_type = 'PDF'.
  lt_objpack-obj_name = 'ATTACHMENT'.
  lt_objpack-obj_descr = lv_descp.
  APPEND lt_objpack.
  LOOP AT t_mail_addr.
    CLEAR lt_reclist.
    lt_reclist-receiver = t_mail_addr-mailid.
    lt_reclist-rec_type = 'U'.
    APPEND lt_reclist.
  ENDLOOP.
  IF t_mail_addr[] IS INITIAL.
    CLEAR lt_reclist.
    lt_reclist-receiver = mail id.
    lt_reclist-rec_type = 'U'.
    APPEND lt_reclist.
  ENDIF.
  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      document_data              = ls_doc_chng
      put_in_outbox              = 'X'
      commit_work                = 'X'
    TABLES
      packing_list               = lt_objpack
      object_header              = ls_objhead
      contents_bin               = lt_objbin
      contents_txt               = lt_objtxt
      receivers                  = lt_reclist
     CONTENTS_HEX                = lt_objbin
    EXCEPTIONS
      too_many_receivers         = 1
      document_not_sent          = 2
      document_type_not_exist    = 3
      operation_no_authorization = 4
      parameter_error            = 5
      x_error                    = 6
      enqueue_error              = 7
      OTHERS                     = 8.
  DATA: l TYPE sy-subrc.
  l = sy-subrc.
When i run the above code in Se38, I get an email with a attachment that i am able to open. The problem seems to be with user WF_BATCH.
I have already checked all the existing threads on this. I did this coding as per one of the SDN threads itself.
I am able to open the PDF attachment even when i test the method. The problem is only when it is run through a task/workflow.
Please advice.
Thanks and Regards,
Soumya Gayatri.
Edited by: Soumya Gayatri on Apr 14, 2009 8:40 PM
Edited by: Soumya Gayatri on Apr 14, 2009 8:44 PM
Edited by: Soumya Gayatri on Apr 14, 2009 8:45 PM
Edited by: Soumya Gayatri on Apr 14, 2009 8:47 PM
Edited by: Soumya Gayatri on Apr 14, 2009 8:47 PM

Hello,
You should see an "Edit" in the top right of your post, you can use that to edit it.
As I said, use  before and after the coding, but without the spaces (after "{" and before "}" ).
Try it!
Testing:
this is code
regards
Rick Bakker
Hanabi Technology

Similar Messages

  • I am unable to open PDF files or run adobe flash when its needed I have downloaded it several times and tried updating it.

    I am unable to open PDF files or run adobe flash when its needed I have downloaded it several times and tried updating it. NEED HELP

    Adobe Acrobat NPAPI Plug-in, Version 11.0.04
    Adobe® Acrobat® Plug-in for Web Browsers, Version 11.0.04 — from file “AdobePDFViewerNPAPI.plugin”.
    application/pdf
    Acrobat Portable Document Format
    pdf
    application/vnd.adobe.pdf
    Acrobat Portable Document Format (Interim)
    pdf
    application/vnd.adobe.pdfxml
    Acrobat XML Portable Document Format
    pdfxml
    application/vnd.adobe.x-mars
    Acrobat XML Portable Document Format (Interim)
    mars
    application/vnd.adobe.xdp+xml
    XML Data Package
    xdp
    application/vnd.adobe.xfd+xml
    FormFlow99 Data File
    xfd
    application/vnd.adobe.xfdf
    Acrobat Forms Data Format in XML
    xfdf
    application/vnd.fdf
    Acrobat Forms Data Format
    fdf
    doubleTwist Web Plugin
    doubleTwist Web Plugin — from file “doubleTwistWebPlugin.bundle”.
    application/x-vnd-doubletwist
    doubleTwist Web Plugin
    Java Applet Plug-in
    Displays Java applet content, or a placeholder if Java is not installed. — from file “JavaAppletPlugin.plugin”.
    application/x-java-applet
    Basic Java Applets
    javaapplet
    application/x-java-applet;deploy=10.25.2
    Java applet
    application/x-java-applet;javafx=2.2.25
    Java applet
    application/x-java-applet;jpi-version=1.7.0_25
    Java applet
    application/x-java-applet;version=1.1
    Java applet
    application/x-java-applet;version=1.1.1
    Java applet
    application/x-java-applet;version=1.1.2
    Java applet
    application/x-java-applet;version=1.1.3
    Java applet
    application/x-java-applet;version=1.2
    Java applet
    application/x-java-applet;version=1.2.1
    Java applet
    application/x-java-applet;version=1.2.2
    Java applet
    application/x-java-applet;version=1.3
    Java applet
    application/x-java-applet;version=1.3.1
    Java applet
    application/x-java-applet;version=1.4
    Java applet
    application/x-java-applet;version=1.4.1
    Java applet
    application/x-java-applet;version=1.4.2
    Java applet
    application/x-java-applet;version=1.5
    Java applet
    application/x-java-applet;version=1.6
    Java applet
    application/x-java-applet;version=1.7
    Java applet
    application/x-java-vm
    Java applet
    application/x-java-vm-npruntime
    Java applet
    QuickTime Plug-in 7.7.1
    The QuickTime Plugin allows you to view a wide variety of multimedia content in web pages. For more information, visit the QuickTime Web site. — from file “QuickTime Plugin.plugin”.
    application/sdp
    SDP stream descriptor
    sdp
    application/x-mpeg
    AMC media
    amc
    application/x-rtsp
    RTSP stream descriptor
    rtsp,rts
    application/x-sdp
    SDP stream descriptor
    sdp
    audio/3gpp
    3GPP media
    3gp,3gpp
    audio/3gpp2
    3GPP2 media
    3g2,3gp2
    audio/aac
    AAC audio
    aac,adts
    audio/ac3
    AC3 audio
    ac3
    audio/aiff
    AIFF audio
    aiff,aif,aifc,cdda
    audio/amr
    AMR audio
    amr
    audio/basic
    uLaw/AU audio
    au,snd,ulw
    audio/mid
    MIDI
    mid,midi,smf,kar
    audio/midi
    MIDI
    mid,midi,smf,kar
    audio/mp3
    MP3 audio
    mp3,swa
    audio/mp4
    MPEG-4 media
    mp4
    audio/mpeg
    MPEG audio
    mpeg,mpg,m1s,m1a,mp2,mpm,mpa,m2a,mp3,swa
    audio/mpeg3
    MP3 audio
    mp3,swa
    audio/vnd.qcelp
    QUALCOMM PureVoice audio
    qcp,qcp
    audio/wav
    WAVE audio
    wav,bwf
    audio/x-aac
    AAC audio
    aac,adts
    audio/x-ac3
    AC3 audio
    ac3
    audio/x-aiff
    AIFF audio
    aiff,aif,aifc,cdda
    audio/x-caf
    CAF audio
    caf
    audio/x-gsm
    GSM audio
    gsm
    audio/x-m4a
    AAC audio
    m4a
    audio/x-m4b
    AAC audio book
    m4b
    audio/x-m4p
    AAC audio (protected)
    m4p
    audio/x-midi
    MIDI
    mid,midi,smf,kar
    audio/x-mp3
    MP3 audio
    mp3,swa
    audio/x-mpeg
    MPEG audio
    mpeg,mpg,m1s,m1a,mp2,mpm,mpa,m2a,mp3,swa
    audio/x-mpeg3
    MP3 audio
    mp3,swa
    audio/x-wav
    WAVE audio
    wav,bwf
    image/jp2
    JPEG2000 image
    jp2
    image/jpeg2000
    JPEG2000 image
    jp2
    image/jpeg2000-image
    JPEG2000 image
    jp2
    image/pict
    PICT image
    pict,pic,pct
    image/png
    PNG image
    png
    image/tiff
    TIFF image
    tif,tiff
    image/x-bmp
    BMP image
    bmp,dib
    image/x-jpeg2000-image
    JPEG2000 image
    jp2
    image/x-macpaint
    MacPaint image
    pntg,pnt,mac
    image/x-pict
    PICT image
    pict,pic,pct
    image/x-png
    PNG image
    png
    image/x-quicktime
    QuickTime image
    qtif,qti
    image/x-sgi
    SGI image
    sgi,rgb
    image/x-targa
    TGA image
    targa,tga
    image/x-tiff
    TIFF image
    tif,tiff
    video/3gpp
    3GPP media
    3gp,3gpp
    video/3gpp2
    3GPP2 media
    3g2,3gp2
    video/avi
    Video For Windows (AVI)
    avi,vfw
    video/flc
    AutoDesk Animator (FLC)
    flc,fli,cel
    video/mp4
    MPEG-4 media
    mp4
    video/mpeg
    MPEG media
    mpeg,mpg,m1s,m1v,m1a,m75,m15,mp2,mpm,mpv,mpa
    video/msvideo
    Video For Windows (AVI)
    avi,vfw
    video/quicktime
    QuickTime Movie
    mov,qt,mqv
    video/sd-video
    SD video
    sdv
    video/x-m4v
    Video (protected)
    m4v
    video/x-mpeg
    MPEG media
    mpeg,mpg,m1s,m1v,m1a,m75,m15,mp2,mpm,mpv,mpa
    video/x-msvideo
    Video For Windows (AVI)
    avi,vfw
    SharePoint Browser Plug-in
    Microsoft Office for Mac SharePoint Browser Plug-in — from file “SharePointBrowserPlugin.plugin”.
    application/x-sharepoint
    Microsoft Office for Mac SharePoint Browser Plug-in
    Shockwave Flash
    Shockwave Flash 11.9 r900 — from file “Flash Player.plugin”.
    application/futuresplash
    FutureSplash Player
    spl
    application/x-shockwave-flash
    Shockwave Flash
    swf
    Silverlight Plug-In
    5.1.20913.0 — from file “Silverlight.plugin”.
    application/x-silverlight

  • 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

  • Unable to open the document when combining files.

    We have a user that gets an error when combining files. It says
    Unable to open the document:
    <Filename and path>
    Please check to see if you have read permission for the above file.
    Retry and cancel buttons.
    We get this error on every subsequent file, it works on the first one after the computer starts.
    This computer has Windows Vista Business with SP2, Adobe Acrobat X with the latest patches.
    It doesn't matter if the files are local or on a network drive, the same always occurs. I have cleared
    all user and system temporary files, re-installed, verified the Acrobat Add-In for Word 2010 is active,
    verifed the PDF printer is working fine. It only happens when trying to combine files. I have given the
    user local administrator privilidges, tried with my account that has domain admin priviledges, no luck.
    I really need some suggestions...
    Thanks,
    Tom

    I have found out from Adobe technical support that this is a known issue with Office 2010 SP1 installed.
    This is an FYI for anyone else experiencing this issue, remove SP1 and it will work ok.
    They said an update to correct this issue will be coming within the next quarter.
    TP

  • Unable to Open PDF Document on Web

    Somebody, please help me since Adobe refused to unless I pay $39.
    When I try to open a PDF document on the internet, I get the following error message:
    "ACROBAT PLUG-IN
    The Adobe Acrobat/Reader that is running can not be used to view PDF files in a Web Browser.
    Please exit Adobe Acrobat/Reader and exit your Web Browser and try again."
    I have Acrobat 8 Professional installed running on Windows Vista OS. This error/message started not long ago. I do not know what I did to cause it.
    Please, you Adobe guru guy, help me now.
    Thank you VERY much in advance.
    JT

    PDF files should be forward compatible, but not backward compatible. Thus, AA5 PDFs should still be fine. If there is a problem, it is likely they have been corrupted. You can open the PDF in a text editor (such as notepad) and look at how it starts. It should be something like "%PDF-1.4" where the %PDF-1.4 at the beginning provides the version number. If you do not see this form of the first 8 characters, then you do not have a PDF or the PDF is corrupt. The latter could happen depending on the manner in which you transferred the file to view. DO NOT Save the file from the editor.
    A common mistake is to post PDFs with FTP using ascii. Unfortunately, only the 1st 8 characters are necessarily ascii and the rest may be binary -- the issue that messes up many e-mail programs that only check the first few characters for the ascii nature.
    Hopefully that gives some thoughts of use.

  • Unable to open PDF documents on iPad

    When I try to open a PDF document on my iPad it says the document is corrupted or damaged. This started happening after the IOS 7.1 update. I updated adobe reader last week and restarted the iPad and nothing has changed. I can open the same document on android and windows with no issues.

    Unfortunately, we are still unable to reproduce the problem on our end.
    However, a forum user (d_hoe) gave us a helpful tip for opening a PDF document from Apple Mail (iOS native mail app) today.
    "I only click on "Download full message" and then I download / open the PDF file. Both App´s standard PDF viewer / iBooks and Adobe Reader display it correctly. If I don´t click on "Download full message" first the PDF is not displayed correctly."
    It sounds like Apple Mail may be corrupting a PDF attachment.
    Do you see "Download full message" at the end of your email message with a PDF attachment?
    Could you try the following steps?
    In Apple Mail, scroll to the end of your email message.
    Tap "Download full message" (if visible).
    Long press (press & hold) the PDF attachment icon.
    Select "Open in Adobe Reader".
    Is your PDF document still corrupted or damaged?
    Please let us know.  This would help other users who have encountered the same problem.
    Thank you for your help!

  • HT204365 Unable to open PDF document saved on ibooks.

    Saved a downloaded pdf document on iBooks, and now I am unable to open it. The original is NLA so redownloading is not an option.
    Any way to recover the document? Any recommendations are welcome.

    PDF files should be forward compatible, but not backward compatible. Thus, AA5 PDFs should still be fine. If there is a problem, it is likely they have been corrupted. You can open the PDF in a text editor (such as notepad) and look at how it starts. It should be something like "%PDF-1.4" where the %PDF-1.4 at the beginning provides the version number. If you do not see this form of the first 8 characters, then you do not have a PDF or the PDF is corrupt. The latter could happen depending on the manner in which you transferred the file to view. DO NOT Save the file from the editor.
    A common mistake is to post PDFs with FTP using ascii. Unfortunately, only the 1st 8 characters are necessarily ascii and the rest may be binary -- the issue that messes up many e-mail programs that only check the first few characters for the ascii nature.
    Hopefully that gives some thoughts of use.

  • Unable to open PDF documents on web pages

    Installed Adobe Reader most recent version on a new Windows 7 Pro 64-bit computer. When attempt to open .pdf files found on work related websites, it launches a window that just has a box with a black "x" in it. Checked the Edit, Preferences settings and using IE 11 with plug-in set to Enabled. Already attempted to uninstall and reinstall Adobe Reader from Adobe.com.

    The solution is described in this Microsoft KB: 32-bit browser applications may not work as expected in Internet Explorer 10
    However, the "Fixit" in that article is only for IE10 on Windows 8, so you will have to make that registry change manually.
    To apply that change automatically, download, unzip, then run the registry script from https://files.acrobat.com/a/preview/326544ed-32ab-4f15-a133-514abb5f61cc

  • How to open pdf documents when marked 'error, access denied' (these are not damaged or non-compliant)?

    I have tried to open them as attachment to an email, and also as a file in my Adobe Reader XI file...same message "There was an error opening this document. Access denied."  This began very suddenly--like something was 'turned off' in the system.
    Funtbird1963

    The message means that a file which is needed to run Adobe Reader has been locked by the system. So it isn't exactly that Adobe Reader is turned off, but the effect is the same.
    Something to try. Can you start Adobe Reader from the START menu in the normal way? If you can, are you able to use Open from the File menu to open a PDF?

  • "Unable to open file" error when running system report in HFM

    I've installed and configured EPM System 11.1.1.2 for HFM and I've created sample application COMMA.
    Next, I'm trying to run sample Journal or ICP Report (for example, sample report named "Journals"). But system gives me an error like this:
    +Unable to open file C:\Hyperion\products\FinancialManagement\Web\HFM\FileTransfer\{C9841217-2F8E-4D67-80EE-C23D2720EF87}.FTR\JOURReport7_821239018.+
    Error Reference Number: {1998AD6B-2CAA-4C04-B4BB-83909C175257};User Name: admin@Native Directory
    Num: 0x80040237;Type: 1;DTime: 09.06.2009 14:30:53;Svr: TESTESO1;File: HFMActionsExecution.cpp;Line: 2236;Ver: 11.1.1.2.0.2207;ExErr: It is an error to mix objects from different versions of MSXML.;
    Num: 0x80040237;Type: 0;DTime: 09.06.2009 14:30:53;Svr: TESTESO1;File: HFMActions.cpp;Line: 72;Ver: 11.1.1.2.0.2207;
    Num: 0x80040237;Type: 0;DTime: 09.06.2009 14:30:53;Svr: TESTESO1;File: HFMCESAction.cpp;Line: 28;Ver: 11.1.1.2.0.2207;
    Num: 0x80040237;Type: 0;DTime: 09.06.2009 14:30:53;Svr: TESTESO1;File: Actions.cpp;Line: 291;Ver: 11.1.1.2.0.2207;
    How can I fix this error?
    Thanks in advance!
    Edited by: Alex Lasker on 09.06.2009 9:49

    For the benefit of anyone who experiences this error in IIS7, the IUSR_xxx user no longer exists. You must grant permissions to "IIS APPPOOL\hfmAppPool" instead (select the local machine as the "Location" if Windows Explorer complains).
    Similarly, for the benefit of those who get the error in HFM 11.1.2.1, security must be applied to the Oracle\Middleware\user_projects\product\FinancialManagement\Web folder.

  • Unable to Open PDF Documents - DDE Server Error

    Each time I open a document using Adobe Reader XI, I get an error message "Unable to contact DDE Server". Is there a fix for this?

    First thing to try is to disable Protected Mode [Edit | Preferences | Security (Enhanced)].

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

  • Firefox is unable to open pdf files even with adobe reader

    i am unable to open pdf documents with firefox . i have installed latest version of adobe reader for firefox but still i am having problem. older versions of mozilla do not have this problem

    Try running Firefox in [[Safe Mode]] If it functions correctly, then one of your add-ons is the culprit.

  • Have recently updated Adobe Reader and now unable to open downloaded documents - Message received is could not open 'file name.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email a

    Have recently updated Adobe Reader and now unable to open downloaded documents - Message received is could not open 'file name.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded). When I check the file it shows Zero KB downloaded but the file appears - any suggestions?

    Obviously your download was not successful.
    What is your operating system?  How exactly do you download such files?

  • I am running Vista and Windows Mail, I can not open PDF files when in Windows Mail, I must save to Desktop first, this has changes recently and I do not know why or how to fix

    I am running Vista and Windows Mail, I can not open PDF files when in Windows Mail, I must save to Desktop first, this has changes recently and I do not know why or how to fix.
    Why after 6 year's this has changed?
    I would like to open PDF's straight from Window Mail.

    Good day Jeff.
    I am running most current Adobe Reader X.
    Tks Mark

Maybe you are looking for

  • IPad video app watched status

    Hi, I have been using the iPhone to watch movies on and have upgraded to the iPad. On the iPhone, beside the movie was a blue cirle indicating whether it had been watched, partially watched or not watched. On the iPad there is nothing of the sort. It

  • Time series chart doesn't work

    I am trying to create a simple time series chart, plotting five time series over a 5 year period. I have a table with the time series in rows, but when I select the chart to graph it, the data appears as if the time series is in the columns! Then, wh

  • Forte Link for Rational Rose 2001 from Xpedior

    Hi, Does someone know the prices for Forte Link from Expedior ? I have downloaded and tested the evaluation version from Xpedior from Australia. But after closing the Australian office I cannot get any information from Xpedior. Regards, Zenon Adamek

  • How do you stop itunes from backing up when trying to update software?

    I have itunes 10.5 and I'm trying to download the new IOS5 software to my iphone. I keep getting an error message saying there is not enough space to backup, but itunes backups anyway and then all the space ends up running out and I have to do a syst

  • On my Mac, on my folder I don´t have the library folder as I should ???!!!!

    on my Mac, using the Finder, on my folder, I don´t have the library folder as I should. I think it is strange. When I go to the time machine, the Library folder it is there, but the folder has not the same colour as the other folders (it is light gre