Display PDF document in web browser

Hi,
I have a smartform which is being triggered from Web UI. I got the data and converted it to PDF format.
I need to display this PDF data in a web browser Pop up.
Please let me know how can I do that.
Thanks
Abhishek

Abhishek,
If you are using the business transaction types, you can setup a default "print" action which then when you click on the "print preview" in the webUI you will get an PDF output view of the print output.
If that doesn't work, then look at the business partner factsheet code delivered by SAP which will show how to display a PDF.
Look at component/view BP_HEAD/BPHEADOverview
Class CL_BP_HEAD_BPHEADOVERVIEW_IMPL
method IF_BSP_WD_TOOLBARR_CALLBACK~GET_BUTTONS
and this section of code
      IF lr_partner IS BOUND AND lv_enabled = abap_true.
        lr_partner->get_property_as_value( EXPORTING iv_attr_name = 'BP_GUID'"#EC NOTEXT
                                           IMPORTING ev_result    = lv_partner_guid ).
        IF lv_partner_guid IS NOT INITIAL.
*       ICF handler class prepares java script
          CALL METHOD cl_crm_afs_print=>get_url
            EXPORTING
              iv_object   = lv_object
              iv_key      = lv_partner_guid
              iv_role     = lv_business_role
              iv_language = sy-langu
              iv_form     = ' '     "read from customizing
              iv_format   = lv_format
            IMPORTING
              ev_url      = lv_url.
          IF lv_url IS INITIAL.
            lv_enabled = abap_false.
          ELSE.
            lr_cuco_head ?= get_custom_controller( 'BP_HEAD/Lifecycle' )."#EC NOTEXT
            IF lr_cuco_head IS BOUND.
*              CONCATENATE '"' lv_url '"' INTO lr_cuco_head->gv_preview_url.
              lr_cuco_head->gv_preview_url = lv_url.
            ENDIF.
          ENDIF.
        ENDIF.
        ls_button-text  = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BP/BP_PDF' )."#EC NOTEXT
        ls_button-tooltip  = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BP/BP_FS_PREVIEW' )."#EC NOTEXT
*        ls_button-on_click = 'PREVIEW'.
        ls_button-on_client_click = 'OpenPopUp()'.          "#EC NOTEXT
        ls_button-page_id  = me->component_id.
        ls_button-enabled = lv_enabled.
        ls_button-icon_src = '/sap/bc/bsp/sap/crm_ppm/w_pdf__s.gif' ."#EC NOTEXT
        APPEND ls_button TO rt_buttons.
        CLEAR ls_button.
      ENDIF.
    ENDIF.
  ENDIF.
Good luck,
Stephen

Similar Messages

  • Adobe Acrobat/Reader can not be used to view PDF's in Web browser.

    Does any one came accross the following message trying to view PDF's in web browser? "Adobe Acrobat/Reader that is running can not be used to view PDF documents in Web browser. Please exit the Acrobat?Reader application and try again". Thanks for your help! Barbara

    http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html

  • Need to remove adobe pdf toolbar in web browser

    I am developing a web application to view pdf file in Web browser like IE,Chrome,Mozilla,Safari.
    while viewing pdf in browser I need to hide/remove the adobe toolbars in both read mode and normal mode.
    I have used the below coding. But still it showing the pdf toolbar in the browser. Is there any otherway to disable Save and Print options from the toolbar?
    <div id="pdf">
      <object width="100%" height="100%" type="application/pdf" data="http://localhost/pdftest/toolbar.pdf#toolbar=0&navpanes=0" id="pdf_content">
      </object>
    </div>
    Kindly do the needful....

    Hi Test Screen Name,
    I have requriment that end user are not allow to print and save the pdf document within web browser. I have a save button and print button within my pdf document. End user are not allowed to print and save the pdf document using adobe toolbars.
    If the end user needs to save or print document the only way they are need to use the button provided within the pdf document. I need to restrict to print and save from the adobe toolbar icons.
    Thanks

  • Adobe Reader DC, doesn't disable "Display PDF Document in the web browser" when option is unchecked.

    The option under Accessibility>Setup Assistanct to uncheck the "Display PDF Document in the web browser" doesn't correctly disable Display PDF in browser when unchecked, it still defaults to opening in Internet Explorer even after restarting the browser.  Confirmed this tested agianst with IE 8, 9, 10 and 11 with the same behavior.  Moving back to Reader 11.0.10 and using this same setting works flawlessly.  Anyone else experiencing this issue?

    I am out of the office until 1/22/13.
    If you need assistance with technical issues, please contact the Help Desk at:  518-402-8888
    >>> Test Screen Name <[email protected]> 01/17/13 10:30 >>>
    Test Screen Name http://forums.adobe.com/people/Test+Screen+Name created the discussion
    "Re: Adobe Reader XI enterprise deploy-disable display PDF in browser?"
    To view the discussion, visit: http://forums.adobe.com/message/5001441#5001441

  • How do I get the Adobe toolbar to display above a pdf in the web browser?

    Hi guys,
    I'm just having trouble with locating the grey toolbar, it's not displaying when I open a .pdf in a web browser.
    I can open the .pdf fine, (within Safari), and usually (on my old computer) there was a grey toolbar above the .pdf & there's a print icon on it - that's what I'm looking for, so that I can print my lecture notes straight away.
    The toolbar won't display on the web browser above the .pdf, but if I save the .pdf & open it with Adobe Reader, then the toolbar displays there with all of the icons etc.
    So I was wanting to know if instead of saving them every time, if there's an option to get the toolbar displaying above .pdfs in Safari?
    Has anyone else encountered this problem?
    Any help would be greatly appreciated.

    Unfortunately, iOS does not provide a way to install "plugins" to Safari so there is no possible way the Reader can do this. You can use the "open in" functionality to launch Reader from Safari.

  • Display PDF document from Servlets to browser - how 2 change the title

    Hi, need help of changing the html title when Display PDF document from Servlets to browser. By default the browser's title shows the obsolute URL where the rdf comes from (i.e. http://www.google.com/sample.pdf), because servlet responds a binary data (PDF), there seems to be no other way to change the browser's title to fit my own choice.
    Appreciate your quick help,

    You can try and check with
    .setTitle("Welcome");

  • I am getting this response when I am trying to open a file: 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."  What do I do?

    I am getting this response when I am trying to open a file: 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.”  What do I do?  I have opened this up in the past without a problem. 

    Back up all data.
    If Adobe Reader or Acrobat is installed, there should be a setting in its preferences such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected. Otherwise do as follows.
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present. The same goes for a plugin called "iGetter," and perhaps others.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Issue with opening pdf file from web browser

    I have Acrobat Pro ver 6 and Adobe Reader 9.1 on a computer.  when my user tries to open up a pdf from the web he is getting the following error message:
    "The Adobe Acrobat/Reader that is running can not be used to view PDF files in a WEb Browser.  Adbe Acrobat/Reader version 8 or 9 is required.  Please exit and try again."
    What also happens is that Acrobat Pro ver 6 opens up and nothing is there.
    I am not sure why he is getting that message since Reader 9.1 is installed.
    Can any one shed some light on this for me.
    This user needs to have Acrobat and Reader on his system.  I understand that there are issues with having both.
    Also he has it set up so that any PDF is opening using the Reader 9.1.
    Thanks,

    Your PC's default reader configuration for embedded PDFs has become confused, due to multiple Adobe PDF document solutions installed on one PC.
    Solution 1:
    Go to Start > Run
    Type regedit and click OK.
    Browse to the following key: HKEY_CLASSES_ROOT\Software\Adobe\Acrobat\Exe
    Make sure that the correct Default data value is set for the path where Adobe Reader or Acrobat are installed.
    The default installation values are:
    "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe"
    or
    "C:\Program Files\adobe\acrobat 6.0\acrobat\Acrobat.exe" (not sure about this path.  Check on your PC to be sure)
    depending on whether Adobe Reader or Adobe Acrobat is installed.
    Solution 2:
    Configure the browser to use Acrobat or Adobe Reader as a helper application.
    If you are using Firefox to browse the web, you can change this setting in Firefox by going to:
    Tools > Options
    Click on the "Applications" Tab.
    The first item in the list should be "Adobe Acrobat Document".  Under the Action list, click the drop down arrow and select the application you want to read PDFs within the web browser.  Click OK, and you should be done.
    If you're using Internet Explorer to view PDFs, try the below steps.
    After you configure Acrobat or Adobe Reader as a helper application, the browser starts the helper application in a separate window and displays PDF files within that window. Acrobat and Adobe Reader both include a preference that lets you specify Acrobat or Adobe Reader as the helper application.
    To configure Acrobat or Adobe Reader as a helper application:
    Start Acrobat or Adobe Reader.
    Choose Edit > Preferences.
    Select Internet on the left.
    Deselect Display PDF In Browser Using [Acrobat application], and then click OK.
    Quit Acrobat or Adobe Reader.
    The next time you select a link to a PDF file in the browser, a dialog box asks what you would like to do with the file. If you select Open It, the browser opens the PDF file in Acrobat or Adobe Reader (the helper application); if you select Save It To Disk, the browser saves the PDF file to your hard drive.

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

    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.
    I have tried to relaunch adobe but still keep getting same message. I can however download file and then open it with preview but would like to get this sorted!!

    Back up all data.
    If Adobe Reader or Acrobat is installed, there should be a setting in its preferences such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected. Otherwise do as follows.
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present. The same goes for a plugin called "iGetter," and perhaps others.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • AdobeAcrobat/Reader that is running can not be used to view PDF Files in Web Browser...what do I need to do to fix this..

    I just got Windows 7 and have been having problems since loading it. Most of my drivers only go to Vista and don't recognize 7.
    I have trying to download some manuals from their website
    and keep getting this message; Adobe Acrobat/reader that is running can not be used to view PDF files in Web Browser.

    Could I suggest a workaround for PDFs until a solution is posted? Open them directly in the Adobe application rather than in a browser tab.
    In your Adobe application(s), go to:
    Edit > Preferences > Internet
    Then uncheck "Display PDF in browser"
    (There are very few sites where having PDF integrated is really beneficial.)

  • "Cannot use adobe reader to view pdf in your web browser" error in Windows 7 and Acrobat pro 8.1.7

    I get the error "Cannot use adobe reader to view pdf in your web browser.  Reader will now exit.  Please exit your browser and try again" in Windows 7 x32 and Windows 7 x64 with Acrobat pro 8.1.7.  This happens when trying to open  a PDF file in Internet explorer 8.0.760 or when I open a PDF in Quickbooks 2008.  If I answer ok or cancel the file opens normally.  If I open acrobat 8 first then the pdf files open as expected.  I also tried a copy of Acrobat reader with no difference in the outcome.  Since this happens on two different computers one fresh copy of windows 7 x64 the other an upgrade to windows 7 x32 and they used to work before the change to windows 7, I assume there is some kind of incompatibility with windows 7 and acrobat.  Is this a known issue and will it be fixed in an update to acrobat in the near future?

    tvandersluijs - I'm sorry if that screwed up your machine however:
    1. What version of Adobe Reader are you using because as you can see the registry entry is for Adobe Reader 9, if ur using Adobe Reader 8 then u need to specify ur version as PAllens entry suggested - "E.g. "C:\Program files\Adobe\Acrobat [version]\Reader\AcroRd32.exe""
    2. I've used this solution significantly because I have come across this specific issue for multiple users.
    3. All the registry entry does is tell Windows what program to use by default to open/view PDF documents.
    My intention wasn't to screw up ur machine or anybody elses as I said I've used this solution many times however what I've should gave is the disclaimer to backup ur registry before u make mods so u can revert back in case. Also the ony other thing I can think of is that this solution was for Windows XP using registry editior 5, I'm noticing that the title of this thread is Windows 7.

  • Safari 5.1.2 still does not allow me to view PDF documents in web pages.  I am running OSX Lion 10.7.2. Any suggestions

    Safari 5.1.2 still does not allow me to view PDF documents in web pages.  I am running OSX Lion 10.7.2. Any suggestions?

    Read here >  Known Issues | Adobe products on Mac OS 10.7 Lion
    And go to ~/Library/Internet Plug-Ins
    Move the PDF Browser plugin to the Trash.
    Quit Safari, empty the Trash.
    Relaunch Safari.  You should be able to view PDF files now.
    Message was edited by: Carolyn

  • I was ALWAYS able to open Adobe Reader items on my IMAC but just recently it is giving me a message stating "Before Viewing PDF documents in this browser you must launch Adobe Reader and Accept the End User License Agreement, then quit and relaunch the br

    I was ALWAYS able to open Adobe Reader items on my IMAC but just recently it is giving me a message stating "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. When I download Adobe Reader for MAC it does not give me an option to except and Agreement I am using OS 10.9 HELP ASAP!!

    lindsey k wrote:
    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.
    And... did you do what the message tells you?
    lindsey k wrote:
    When I download Adobe Reader for MAC it does not give me an option to except and Agreement
    Nothing to do with the download; you need to open Adobe Reader once after the install is complete, and accept the EULA.

  • I keep getting this message: "Before viewing PDF documents in this browser you must launch Adobe Rea

    I keep getting this message after the download: "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."
    I am not getting anything about accepting the EULA.  GRRR!!  Please help!!!  I need to use this program.!!!
    I don't understand how to do this.??

    Mac HD/Applications
    Double click the Adobe Reader App
    Accept the agreement
    Relaunch Safari

  • Before viewing PDF documents in this browser you must first launch Adobe Reader and accept the End User License Agreement, then Quit and relaunch the browser.

    Using Google Chrome, when attempting to open a PDF document, the following message appears:
    Before viewing PDF documents in this browser you must first launch Adobe Reader and accept the End User License Agreement, then Quit and relaunch the browser.
    On my Mac, there is no way to just open Adobe Reader and accept the ELUA.

    Hi Wade Perkins,
    Please refer cant view pdf in browser.
    Thanks.

Maybe you are looking for