How to display pdf file in flex application

hi,
I am Ibran, I am using Flex4.5, in that i want to display a pdf file like images.
How can i do it please anyone tell me.
I have used navigateToURL(url),but this was going into navigation and i can't see my textfield and buttons.
So without this  navigateToURL(url) how can i display a pdf file in flex without navigation so that i can see my textInputs and buttons.

Flash does not have the ability to load/display/manipulate PDF files, so you can't open it directly in the flex application.  With clever HTML and javascript, you can make it appear that it is in the same window, but it will actually be in a separate window/div in the browser.  And yes, this has always seemed absurd to me that Adobe doesn't support PDF's......
Mark

Similar Messages

  • Displaying PDF file in Flex application

    Hello,
    Is there any way, by which I can read/display PDF file as it is in Flex application (Web based). Is there any way or work around by which I can achieve
    this.
    Awaiting for prompt response.
    Thanks and Regards

    Hello Mariush,
    I have to display the content of the PDF in the flex application. If not PDF directly, is there other workaround for this. Or can I display the content of the MS word file, if not PDF.
    Thanks and Regards
       Khalid Chaudhary

  • Loading pdf file in flex application (not in AIR)

    Hi,
    Could any one suggest opening pdf file within flex application with blazeds.
    we have used the following code to open pdf file in the same window
    navigateToURL( new URLRequest( "http://localhost:8080/PdfSample/jsp/PdfContent.jsp" ),"_self");
    But we want to load the pdf file in a vbox.Similary to the below image
    Is it is possible to load pdf file in flex application,if so how can we achieve it

    Hello Mariush,
    I have to display the content of the PDF in the flex application. If not PDF directly, is there other workaround for this. Or can I display the content of the MS word file, if not PDF.
    Thanks and Regards
       Khalid Chaudhary

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

  • 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

  • How to open user file in Flex Application

    Hi forum,
    I develop flex2 application where user can browse and open
    XML file: the file should be loaded to text area.
    Could you, please, advice me how to browse and open user
    file?
    I found FileReference class but it looks that it can only
    upload file to a server. I need to open the file in flex
    application.
    Thanks for your help.
    Smoke007

    The issue isn't Flex, but the Flash Player. It is too much of
    a security risk to allow SWFs running in the Flash Player to open
    local files. Imagine going to a web site that has a SWF banner ad -
    but that banner ad opens local files and sends them to a remote
    system - all of your personal and financial information transfered
    without your consent.
    Flex apps running in the AIR player are different - the end
    user must launch them explicitly, just like any other local
    program.

  • How to display PDF file in OAF page

    Hi All,
    I have an requirement to display a PDF file in OAF page. The PDF file will be stored in custom location in unixbox and when the user clicks on the hyperlink from OAF page, the PDF file should be promted to open or save the file in the local system.
    The pdf file will be stored in $XBOL_TOP and I am not sure on how to link the file directory path from OAF page.
    Please share some information on how to achieve this logic.
    Regards,
    Ram

    Hi,
    Did you find a way to do this.
    Please advise.
    Thanks
    Krishna
    Edited by: user452458 on May 11, 2010 6:53 PM

  • How to display PDF file in IE itself?

    hi friends,
    I am displaying payslip as PDF format in IE. in my system it's showing in IE it self.
    But the same thing when i executed in other system the PDF file is opening seperatly instead of opening in IE.
    How can i overcome this problem.
    Any solutions plz....
    Regar

    hi,
    If you dont mine can you give me the steps or i sit possible to make IE settings dynamically when ever users executed this applicaiton.
    Regards,
    Shankar.

  • How to display pdf-files out of a blob

    Hello,
    we want to use pdf to publish our enterprise-informations (jobs, press release...) in the intranet.
    How can a display a pdf-file with Portal that was saved in blob?
    regards
    Ralf Schmitt

    Not entirely. At least we came to the conclusion it doesn't make (much) sense to block the save option of PDFs if you want to allow printing them
    Anyway; there is of course another possibilty: you could always write your own java bean PDF reader; there are plenty of java PDF libraries available:
    Open Source PDF Libraries in Java
    The easiest way would be to choose one which can open a PDF from a URL and render it; I would retrieve the image via mod_plsql using WPG_DOCLOAD and simply use the PDF library to render the PDF. No tempfiles anyway, and if you don't implement it there is also no save button.
    cheers

  • Error in displaying PDF file in webdynpro application

    Hi Experts,
    I am trying to display one pdf file using webdynpro abap using MIME.
    While executing the application i am getting an error in the browser:
    " File doesnot begin with '%PDF-' "
    Please help me to proceed.
    Regards,
    Arun.

    Hi Arun,
    Please check this...
    File does not begin with %PDF
    File does not begin with %PDF
    Cheers,
    Kris.

  • How to display pdf file on curve 8520..

    y is pdf file not displayed on curve 8520.. how to make it happen

    Hi and Welcome to the Forums!
    For the time that a PDF remains an email attachment, you can render it on the BB. Once detached or otherwise not an email attachment, the attachment service no comes into play...and you require a 3rd party app to render it. There are several. I suggest you search AppWorld and other search sources, compare the various alternatives, and select the one that best meets your needs. You will likely find the DataViz apps as well as BeamReader and perhaps others.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to display PDF file in a apllication server? challenging question  !!!!

    Hi friends
    I have a requirement. I have a screen there are few buttons in the screen. The purpose of the buttons is , when the user clicks the button it should open pdf files , jpg files which are kept in a application server.  How to achieve this. If sample code is available then it would be of great help
    Thanks in advance.
    Regards
    RAj

    Hello Raj
    Have you had a look at sample report SAP_PDF_VIEWER_DEMO already?
    REPORT SAP_PDF_VIEWER_DEMO .
      data: my_pdf_viewer     type ref to cl_gui_pdfviewer,
            my_main_container type ref to cl_gui_custom_container,
            entry1(100) type c,
            entry2(100) type c.
      data: okcode type sy-ucomm.
      include pdf_demo_event_receiver.
      data: l_event_receiver type ref to lcl_pdf_demo_event_receiver.
      start-of-selection.
      set screen 100.
    *&      Module  pbo_0100  OUTPUT
    module pbo_0100 output.
      set pf-status 'STATUS100'.
      set titlebar  'TITLE100'.
      " running down the pbo for the first time,
      " create the controls and their containers
      if my_main_container is initial.
        create object my_main_container
          exporting
            container_name = 'CUSTOM_CNTL'
          exceptions
            cntl_error     = 1
            others         = 2.
        if sy-subrc <> 0.
          exit.
        else.
        " create PDF Viewer object
        create object my_pdf_viewer
          exporting
            parent              = my_main_container
          exceptions
            cntl_error          = 1
            cntl_system_error   = 2
            others              = 3.
          if sy-subrc <> 0.
            "could not create PDF Viewer
          endif.
        endif.
        data: view_buttons_active type char01.
        if my_pdf_viewer->acrobat_vs_reader = ''.
          view_buttons_active = 'X'.
        endif.
        " create SAP toolbar for PDF Viewer
        call method my_pdf_viewer->create_toolbar
          exporting
            tool_buttons      = 'X'
            view_buttons      = view_buttons_active
          exceptions
            cntl_error        = 1
            cntl_system_error = 2
            others            = 3.
        if sy-subrc <> 0.
          "could not create toolbar
        endif.
        create object l_event_receiver.
        set handler l_event_receiver->on_document_saved for my_pdf_viewer.
        set handler l_event_receiver->on_viewing_finished for
    my_pdf_viewer.
        if not my_pdf_viewer->html_viewer is initial.
          call method my_pdf_viewer->open_document
            exporting
              "url = 'http://p34198/iissamples/default/ReadMe.pdf'.
              url = 'C:\tmp\Reader.pdf'.  " NOTE: wrong URL -> use 'file:///C:\tmp\Reader.pdf' instead
        endif.
      endif.
    endmodule.                 " pbo_0100  OUTPUT
    *&      Module  pai_0100  INPUT
    module pai_0100 input.
      case okcode.
        when 'EXIT'.
          leave program.
        when 'LOADURL'.
          call method my_pdf_viewer->open_document
            exporting
              url = 'http://p34198/myweb/Devfaq.pdf'.
        when 'EVENT'.
          entry1 = l_event_receiver->entry_field1.
          entry2 = l_event_receiver->entry_field2.
      endcase.
    endmodule.                 " pai_0100  INPUT
    Regards
      Uwe

  • Hi. Is it possible to load/view a pdf file in Flex application?

    Hi,
    Can we load a pdf inside a flex web application (not AIR)? If yes, how to we interact with the loaded pdf using javascript?
    Appreciate your help.
    Thanks
    Mahesh

    No, you can't directly load a pdf inside a flex web application.  You can use the external interface to open one in either an iframe, or a new tab/window in the browser.  Then you can use external interface calls (javascript calls to the host browser) to interact with the loaded pdf.
    Mark

  • How to display PDF file, inside the SWF file or flash exe file

    I  have create the application for Employee details using flash actionscript 3.0
    This application is to view the organization employee details, iam using the tree component in this application,
    the tree component is to get the dada via xml file, this xml file save in the remote server ,
    I display the PDF file inside the swf file to using " StageWebView" class . Then i goto Publish Setting to change the  player Adobe Air 2.6 and run the flash file using
    ctr-l + Enter . It is work correctly the PDF file is Displayed inside the Swf Output. But I Publish this file to exe . then i run the exe it is not working .
    The application is run The xml data is onely get and displayed the Tree component then i click the tree item employee name the xml data in not display and the pdf file is not open .
    Pls Help...................

    hi i need to display the pdf file inside the swf file or flash exe file .
    I use the navigateToURL class this is open the pdf file on the browser. I want to display the pdf file in the swf window .
    Please suggest.

Maybe you are looking for

  • The expression is not being displayed in the alert inbox

    Hi, I have created an expression in 'Long and Short Text' tab present in the ALRTCATDEF transaction screen. The expression is "test Error in message &SXMS_MSG_GUID&". However if i goto alert inbox, this expression is not getting displayed. I tried pu

  • TS3477 How do I connect my HD Cinema display unto my new MacMini?

    I just purchased a new  Mac mini but want to continue using my HD Cinema display. My HDMI connector does not fit into my new Mini. Can I find hardware so I can connect to my new Mac mini?

  • Clear system drag image

    Hi, When using drag and drop (in a JTree) under Solaris, a drag image appears. I would like to clear this image to display only the image I have created. When I run my app under Windows, there's no problem, only my image is displayed. Could somone pl

  • Some syntax problems (I guess)

    Hi, I'm having problem with the first constructor in this simplified example code... I want to create a "default" Comparator. I'm not quite sure how to do this. public class MyClass<E> {     private Comparator<E> comp;     public MyClass() {        

  • How to get DDL descriptions of DDIC tables?

    Hi, for a replication scenario of ERP data into BOBJ BI on Demand we have to define data schemas in the BI oD MS SQL Server. Instead of doing that manually, we could also import DDL (data definition language) descriptions of the ERP DDIC table to rep