Display pdf in Iframe

Hi
       I have posted lot many threads for this problem but I am not getting the answer.Even I am not finding threads available for the same problem.
       My problem is:
       I have a function module which executes a report at backend and converts it from RTF to PDF text.
      I want to display that PDF in webdynpro as a report it is.
      I have used IWDWebResource still it is not coming.
      I DON'T WANT TO USE INTERACTIVE FORM.
      Is it possible??
      Please reply....
Thanks
Prajakta

Hi Prajakta,
                   Hope these threads will help u
Download PDF
u can use either of both solutions.the example bertram has mentioned here is already available here in excel export section
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#58">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#58</a>
regards
Sumit
Message was edited by:
        Sumit Malhotra

Similar Messages

  • How to display PDF in JSP using Iframe

    Hi All,
    I am using Struts 2. I am building my file in ActionClass with seperate Method like getGeneratedPDF() in which, I am setting header of response and writing into PDF.
    This method will be called from JSP by this way
    s:property value="getGeneratedPDF()" />
    But It displayed Junk Characters , and this PDF is not static (already Generated). It is generated and build on Fly.
    I have 2 questions 1 -- How to display PDF in JSP in proper way without Junk Character in it?
    questions 2 -- How to display it in Iframe?
    Please help me , If you know the solution.
    Thanks in Advance,
    Jimmy

    jamy_26 wrote:
    But It displayed Junk Characters , and this PDF is not static (already Generated). It is generated and build on Fly.A PDF file is a binary file, not a text file, and you're trying to display it as String. Of course you would get "junk characters". Have you ever tried opening a binary file (pdf, doc, jpg, xls, etc) using a text editor like Notepad?
    I have 2 questions 1 -- How to display PDF in JSP in proper way without Junk Character in it?Display it as binary stream, not as text stream. You can display it standalone, just let the link/form/addressbar URL point to some Servlet which writes the InputStream of the PDF file to the OutputStream of the response, along with a correct set of response headers (at least content-type, content-disposition and content-length), so that the browser can open it in the correct application (which is usually Acrobat Reader). If you want to embed the PDF file in a JSP, then one of the ways is indeed using the HTML <iframe> tag.
    questions 2 -- How to display it in Iframe? Just let the iframe URL point to the aforementioned Servlet.
    You can find here an example of a generic file servlet, you may find it useful to get the idea how to do it: [http://balusc.blogspot.com/2007/07/fileservlet.html].

  • When I try to load a pdf in iframe and I disable PDF toolbar, Its working fine in Internet Explorer and lower versions of Firefox, but in Firefox 19 its not

    When I try to load a PDF inside Iframe and I disable toolar=0 (as guided by adobe). I am able to see the iframe with PDF with no toolbar in IE and lower versions of Firefox (till version 14).
    But in my current version 29, The PDF is visible with toolbar on top.
    Can you please let me know the way to display pdf with no toolbar in Firefox 29?

    I replied on your similar question here: https://support.mozilla.org/questions/1005225

  • How to display Pdf file in iPad site

    Hi
    How to display Pdf file in web page which can able to view in iPad safari?
    Thanks,
    Arun

    You can't really.
    You need to use DHTML in the swf-wrapper HTML file, usually a
    division wrapped iFrame, and load the PDF into the iFrame as an
    overlay to the Flash.

  • How to display pdf in Web Dynpro Page

    Hi Experts,
    I need to display the pdf file in web dynpro page. I am using  Web dynpro 7.1(CE), in that no ui element like Iframe. With Iframe we can display the pdf file in web Dynpro page in 7.0.
    But My problem is how display pdf with out using Iframe.
    Please any one tell how to display with any other UI elements.
    Regards,
    Sunil.

    Hi sunil..
    chk this link..
    <u><b>Pdf</b></u>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0401535-f81c-2a10-0192-ffd41e8e8d59
    <u><b>Adobe</b></u>
    /people/achim.hauck/blog/2005/02/04/my-struggles-with-the-adobe-document-services-in-was640
    <u><b>Configuration</b></u>
    http://help.sap.com/saphelp_nw70/helpdata/en/43/8a1a8ece230c8ce10000000a11466f/content.htm
    <u><b>Adobe Document services</b></u>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e4e9afb-0701-0010-f8a8-b8cd093662c2
    <u><b>Configuring Guided procedure of Interactive Forms</b></u>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b9ea34c2-0701-0010-e2a2-d8e9cd6d85dc
    <u><b>Forum Discussions abt Adobe Document Services</b></u>
    Re: Configuring the Destination URL for the Adobe Document Services
    Hop will this helpful for u..
    Regards,
    GS

  • Pdf in Iframe - Scrolling problem

    Hi,
    We face the below mentioned problem. Would be great if someone could help us.
    Due to problems with uploading the attachment here, please send a email to the following email-id ([email protected]) and I shall send the attachment in response.
    Consider the attachment (pdf_frame.JPG). A PDF is displayed in the iframe indicated in image file. When the PDF is scrolled using mouse scroll wheel the iframe moves Up and Down based on scroll wheel movement direction."
    * Steps to Reproduce:
    1. Execute the IFrameIssue.rar application (Fetch through email).
    2. Scroll the Application
    * Expected Result:
    PDF should only scroll within the IFrame and IFrame should be static.
    * Actual Result:
    Iframe along with the PDF moves UP or DOWN depending on mouse scroll movement.
    * Any Workarounds: None
    Thanks in advance.

    We have come across the same issues and wondered if you had a solution provided on this?  If so could you share.
    Thanks
    Martin

  • I need to configure Acrobat to display PDF files in Safari, but I have a lot of troubles to do it.I have OX S yosemite, I unistalled adobe acrobat, I closed safary and I installed the new version of adobe acrobat.

    Dear everyone
    I need to configure Acrobat to display PDF files in Safari, but I have a lot of troubles to do it.
    I read a european commission document explaining that
    http://ec.europa.eu/research/participants/data/support/sep_usermanual.pdf
    If Safari does not display pdf forms in the browser window, uninstall all older versions of Adobe Reader and download the most recent one. First close Safari and then install Reader. Launch Safari and you ought to be able to open the pdf files inside the Safari window. If you install Adobe Reader 10.1.x without first closing Safari, Safari will not display the pdf file inside its browser window until it is re-launched. For further help, please see http://helpx.adobe.com/acrobat/kb/troubleshoot-safari-plug-acrobat-x.html
    I have OX S yosemite, I unistalled adobe acrobat, I closed safary and I installed the new version of adobe acrobat
    but when I open a web page that I need to allow me to display and modify PDF files it is not working.
    I checked the following web page
    Troubleshoot Safari plug-in | Acrobat X, Reader X
    that is recommending the following:
    The AdobePDFViewer plug-in is used to display PDF files in Safari using Acrobat and Reader.
    This plug-in is installed as part of the Acrobat X or Reader X installation. The location of this plug-in is:
    /Library/Internet Plug-ins/AdobePDFViewer.plugin
    but after the new installation with this folder is completely empty and I am still
    unable to open these pdf.
    Does anybody knows anything else I can do?
    Best regards
    Ramon

    Moving this discussion to the Adobe Reader forum.

  • Displaying PDF in new Browser window

    Hi all,
    I have a question about displaying a invoices in pdf format in a new window. I read several threads about this, but I haven't been able to solve my problem.
    I'm using following code:
    append the pdf to the response
      cl_wd_runtime_services=>attach_file_to_response(
        i_filename  = 'test.pdf'
        i_content   = lx_pdf
        i_mime_type = 'application/pdf'
        i_in_new_window = ' X'
        i_inplace       = 'X' ).
    The content (lx_pdf) is retrieved from a smartform, via the function module for the smartform in question, after which I convert the OTF Data (JOB_OUTPUT_INFO-OTFDATA) to XSTRING using FM SCMS_TEXT_TO_XSTRING. The returned data (buffer of type xstring) I use for afore mentioned method. But all I get to see is the following:
    //XHPLJIIID    0700 00000000001
    IN04EZZ_MO_SMARTFORM_TEST
    IN05TEST_PAGE_1
    OPDINA4   P 144  240 1683811906000010000100001
    IN06MAIN
    IN06TEXT_TEST1
    MT0168902156
    CP11000000E
    FCCOURIER 120  00144 SF001SF001110000144E
    UL +0000000000000
    CT00000000
    ST0590441This is a text page for displaying PDF in a
    MT0168902396
    ST0547238new window
    MT0168902636
    ST0460832called from within a WD application
    MT0168902876
    ST0144010Application
    EP
    The text is correct, but it is not displayed as PDF in new window, and of course I'm not interested in all the formatting codes in front of every line??
    I should be possible to display a pdf in a new browser window without having installed everything needed for Adobe Interactive forms, or isn't it??
    Kind regards,
    Micky.

    Hi Micky.
    If you have the spool number of the printed billing document you can use
    component WDK_SPOOL_TO_PDF in order to display spool as PDF.
    Just transfer spool number and format to default inbound start up plug.
    Cheers,
    Sascha

  • Does anyone know why after upgrading to Mavericks, Safari will not display PDF files, is there a solution?

    I cannot get Safari to display PDF files, it shows a blank screen with the comment that Safri has blocked PDF, however when you unblock it still does not show the PDF, I have had to rely on Firefox for this, which I find not too good. Any help very much appreciated.

    Update to 10.9.1
    Adobe Reader
    http://helpx.adobe.com/acrobat/kb/blocked-plugin-alert-safari-7.html
    Best.

  • How to display pdf file in windows phone 8 silver light application?

    Hi,
    I am developing windows phone 8 silver light application . For my app I want to display pdf files . Is there any default controls to display pdf files ?
    I don't want to display using launchers , I want to display with in the app.
    any help,
    Thanks..
    Suresh.M

    Probably this should give you a fair idea : How to view PDF file inside an Windows Phone application?
    http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8

  • Html db to display pdf files saved as blob in the data base

    Hi all,
    I have a DB page to call next page to display pdf files.
    A procedure is being called when the link is clicked on the first page.
    However, the procedure output a juck code insteand the pdf files. Please help.
    Thanks,
    n_length number;
    n_image BLOB;
    begin
    select note_image, dbms_lob.getlength(note_image)
    into n_image, n_length
    from n100_notes where note_id = nid;
    owa_util.mime_header('application/pdf');
    htp.p('Content-length: ' || n_length);
    wpg_docload.download_file(note_image );

    we use:
    owa_util.mime_header('application/pdf',false);
    htp.p('Content-Length: ' || dbms_lob.getlength(l_blob));
    owa_util.http_header_close;
    wpg_docload.download_file(l_blob);
    see plpdf.com
    LL

  • PDF addresses not longer load and display PDF in Firefox and solutions suggest to other users with problem DON'T WORK (work fine in Chrome and Safari)

    This is an ongoing problem with other users. When putting a PDF in address window of Firefox and clicking go to address FIREFOX WILL NOT LOAD AND DISPLAY THE PDF. This problem has come up in questions from other users on your site. NONE OF THE SUGGESTED SOLUTIONS WORK! (trying either the Firefox PDF viewer or the Acrobat viewer as default viewer)
    I am using Firefox 23.0.1 (as some of the other users with the same problem). This was not a problem in the past with Firefox. Safari and Chrome continue load and display PDFs just fine from their addresses. This is a big problem as I now have to inform people who want to view my PDFs NOT TO USE FIREFOX BUT TO USE SAFARI OR CHROME.

    It appears that a link to a PDF on an internet page will not download in Firefox either!
    I went to this page:
    http://www.nasa.gov/connect/ebooks/earth_art_detail.html#.UjYEzrwsU08
    and tried to download the PDF link at the bottom of the page (Download: PDF 11.3 MB) It didn't work! Nothing happens. Tried it in Safari and it worked flawlessly.
    I have a PDF file of my work in the public_html folder on my URL. I give the address generated by that file to people who want to view my work---this works perfectly in Safari and Chrome. As to your other question, can't bookmark it if I can't get to it in Firefox.

  • Installing AcrobatPro after removing Adobe Reader Safari displayed pdf urls only as a black page anymore

    After installing Acrobat Pro it installs in Library/Internet Plugin-ins/AdobePDFViewer.plugin version 11.0.03. Allthough after selecting a PDF-link it leads to a displays it not in Acrobat Pro, it diplays it as a black page in Safari. When I have a look in Acrobat Pro into the preferences/internet/webbrowser-option/PDF to show inBrowser with: isnt checked! And there is still listed/Application/Adobe Reader.app instead of /Applikation/Adobe Acrobat Pro!!
    There is no way to select this Applikation. Having a look at Lbrary/Preferences/com.adobe.acrobat.pdfviewer.plist listed:
    AdobePDFDriver file://localhost/Volumes/Sicherung%20laptop/Applications/Adobe/Adobe%20Acrobat% 209%20Pro/Adobe%20Acrobat%20Pro.app/
    ReaderInstallPath file://localhost/Applications/Adobe%20Reader.app/
    WebBrowserUsePath file://localhost/Applications/Adobe%20Reader.app/
    Has anyone changed the ReaderInstallPath file or WebBrowserUsePath file to the path of Acrobat Pro  and as a result a good diplay of PDF-urls in Arcobat Pro or Safari??
    Thankx, I hope my english isn´t to bad for a german apple-user!

    Thanks for the screenshot, Pat. I think the light bulb went off for me. I was looking over the tips for configuring Firefox at the link:
    http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html
    And I think what confused me the most was this screen shot for plug-ins for Firefox mentioned Acrobat.
    I had Acrobat installed myself, but most of our users do not use Acrobat, since it's not a free product. I uninstalled Adobe Acrobat, and the Adobe Acrobat plug-in was still there, so that forced me to realize that the plug-in that comes with Adobe Reader 11.0.3 is called "Adobe Acrobat".
    I went into Tools->Options->Applications and selected "Use Adobe Acrobat (in Firefox)", rather than "Use Adobe Reader (default)".
    This now allows me to not only view PDFs within a browser window in Firefox, but it also enables the save icon (which "Use Adobe Reader (default)" was not allowing me to do:
    It's a shame that the default setting is not for "in browser", because our customers may have to make a configuration change.
    There is no way to programmatically force a configuration change on a user's browser, is there?

  • How to display pdf file with java code?

    Hi All,
    i have a jsp pagein that page if i click one icon then my backing bean method will call and that method will create pdf document and write some the content in that file and now i want to display that generated pdf document.
    it should look like you have pressed one icon and it displayed pdf file to you to view.
    java code below:
    FacesContext fc = FacesContext.getCurrentInstance();
    ExternalContext ec = fc.getExternalContext();
    HttpServletResponse resp = (HttpServletResponse) ec.getResponse();
    resp.setHeader("Content-Disposition", "filename=\"" + temppdfFile);
    resp.encodeRedirectURL(temppdfFile.getAbsolutePath());
    resp.setContentType("application/pdf");
    ServletOutputStream out = resp.getOutputStream();
    ServletUtils.returnFile(temppdfFile, out);
    out.flush();
    and above temppdfFile is my generated pdf file.
    when i am executing this code, it was opening dialog box for save and cancel for the file, but the name of the file it was showing me the "jsp file name" with no file extention (in wich jsp file i am calling my backing bean method) and type is "Unknown File type" and from is "local host"
    it was not showing me open option so i am saving that file then that file saved as a pdffile with tha name of my jsp file and there is nothing in that file(i.e. empty file).
    what is the solution for this. there is any wrong in my code.
    Please suggest me.
    Thanks in advance
    Indira

    public Object buildBarCodes() throws Exception
    File bulkBarcodes = null;
    String tempPDFFile = this.makeTempDir();
    File tempDir = new File("BulkPDF_Files_Print");
    if(!tempDir.exists())
    tempDir.mkdir();
    bulkBarcodes = File.createTempFile
    (tempPDFFile, ".pdf", tempDir);
    //bulkBarcodes = new File(tempDir, tempPDFFile+"BulkBarcode"+"."+"pdf");
    if(!bulkBarcodes.exists())
    bulkBarcodes.createNewFile();
    Document document = new Document();
    FileOutputStream combinedOutput = new FileOutputStream(bulkBarcodes);
    PdfWriter.getInstance(document, combinedOutput);
    document.open();
    document.add(new Paragraph("\n"));
    document.add(new Paragraph("\n"));
    Image image = Image.getInstance(bc.generateBarcodeBytes(bc.getBarcode()));
    document.add(image);
    combinedOutput.flush();
    document.close();
    combinedOutput.close();
    FacesContext facesc = FacesContext.getCurrentInstance();
    ExternalContext ec = facesc.getExternalContext();
    HttpServletResponse resp = (HttpServletResponse) ec.getResponse();
    resp.setHeader("Content-Disposition", "inline: BulkBarcodes.pdf");
    resp.encodeRedirectURL(bulkBarcodes.getAbsolutePath());
    resp.setContentType("application/pdf");
    resp.setBufferSize(10000000);
    ServletOutputStream out = resp.getOutputStream();
    ServletUtils.returnFile(bulkBarcodes, out);
    out.flush();
    return "success";
    This is my action method which will call when ever i press a button in my jsp page.
    This method will create the barcode for the given barcode number and write that barcode image in pdf file
    (i saw that pdf file which i have created through my above method, This PDF file opening when i was opening manually and the data init that is also correct means successfully it writes the mage of that barcode)
    This method taking the jsp file to open because as earlier i said it was trying to open unknown file type document and i saved that file and opended with editplus and that was the jsp file in which file i am calling my action method I mean to say it was not taking the pdf file which i have created above it was taking the jsp file

  • Acrobat 9 "Display PDF in Browser" on IE7 crashes the browser

    Hi,
    Here's what is happening. My company purchased a few licenses for Adobe Acrobat Professional 9, and they were installed on some of the company laptops. These laptops are in a UAC controlled SOE environment, so the employees are restricted to do any updates/installations that requires rights. The Adobe Professional 9 was installed through SCCM advertisement, and the "Display PDF in Browser" option was enabled.We discovered that when we attempt to download any pdf files off the web, the browser would stop responding/hangs during the duration of the downloads (shown at the status bar of IE), and we can only kill off the process.
    The current workaround is to disable the "Display PDF in Browser" and download the file directly. However, it came to some points where the pdf documents contains some dynamic links over https on the site is is residing. In which case, the pdf have to be open to view from the secured site for the dynamic link to works.
    Previously with Adobe Reader 9, we face no such issue. Only after we installed Acrobat Professional 9, this issue surfaces.
    We have tried uninstalling the Reader before installing the Acrobat to prevent any chances of conflicts, problem persisted.
    Here are the versions of the software involved.
    Adobe Reader v9.3
    Adobe Acrobat Professional v9.0.0
    Internet Explorer v7.0.6002.18005
    I have looked through the forums for similar cases, unless I have missed the keywords, I do not see any similar cases.
    Has anyone encountered similar issues? Would appreciate if you could share on what was done to circumvent this. Thank you!
    Jiang.

    Hi broger_1,
    Thanks for your reply.
    In regards to your query:
    Is the problem seen with both Reader and Acrobat?
    No, this is only seen when Acrobat is install. It is working fine when only Reader is installed.
    What is your definition of a dynamic link? Post example.
    At the moment, I cannot find a online example for reference. I will try to describe by example.
    Let's say if I goes to https://nonexistance_site.com/brochure_ folder/broc_1.pdf, and the "Display PDF in Browser" was already enabled.
    The content of the broc_1.pdf contains a hyperlink that points to "../broc_2.html"
    Our issue now is the we can only download the pdf file to a folder, say c:/pdfs/broc_1.pdf, so when we tried to access the dynamic link, it will tries to locate c:/pdfs/broc_2.html, which is non-existence. And direct access to https://nonexistance_site.com/brochure_ folder/broc_2.html would not work for some reason (possibily session restriction, or something else).
    What are your security settings? (is Enhanced Security enabled?)
    This setting is currently disabled in the Acrobat Pro 9 preference. Should this stays as disabled?
    This only happens when attempting to "download & display" any pdf files from the net, displaying of local pdf that is already downloaded is fine.

Maybe you are looking for

  • When I open PDFs in firefox 4 RC my Synaptics touchpad 2-finger scrolling stops working.

    I am using Windows 7 and have Acrobat 9 Pro installed. Scrolling works fine when I do not have a pdf open in any tab. When I have a pdf open in any tab, I can scroll in the pdf's tab but not in any other. My logitech mousewheel works fine all the tim

  • Link between assets in different versions. (One update changes an asset in all 3 places)

    I understand the hurdles it will take to give Adobe Muse the ability to create responsive sites, though I have very little knowledge of what it takes to make a change like this I wonder if there is a way to soften the blow of there being no true resp

  • Importing from Premiere CC 2014 to Premiere CC

    I've just installed Premiere Pro CC 2014 and continued editing an on-going project (which I was editing in Premiere CC). At first everything was OK and I took some important steps into the editing, but after a few days the new software is extremely s

  • Assets - Best Practices

    Dear Asset Gurus, I know that there are two methods of capitalisation exist in SAP. One is Asset under Construction and other is direct capitalisation. Please let me know which is widely used. What are all the relative benefits Thanks Krishnadas

  • Create a graphics object

    Hello, I want to create a graphics object. However, I need to use it in a function outside of a paint method in an applet. I need to create the object to check the FontMetrics of a combination of font parameters. This needs to be done independent of