PDF inside FLEX APPLICATION?

My goal is to open a document pdf in a flex application.
My document pdf is generated by using the library itext and an action struts.I used flex-iframe but the iframe source receives a path fixed like "http://localhot:9090:/applicationTest/exemple.pdf".
have you any ideas?
This is the exeample of  index.mxml when I use flex -iframe with a fixed path of pdf document
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                xmlns:local="*"
                creationComplete="init();"
                viewSourceURL="srcview/index.html">
    <mx:Script>
        <![CDATA[
            private function init():void
                iFrame.visible=true;
        ]]>
    </mx:Script>
    <mx:HBox width="100%" height="100%">
        <mx:Panel width="100%" height="100%" title="Test PDF" paddingTop="1" paddingBottom="1" paddingLeft="1" paddingRight="1" >
            <local:IFrame id="iFrame" source="http://localhot:9090:/applicationTest/exemple.pdf" width="100%" height="100%" />
            <mx:ControlBar>
                <mx:CheckBox id="cbVisible" label="IFrame Visible" selected="true" click="iFrame.visible=cbVisible.selected"/>
                </mx:ControlBar>
        </mx:Panel>
    </mx:HBox>
</mx:Application>
This is the example of code that is failed:--> the pdf document is opened in the other window of browser:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                 xmlns:local="*"
                 creationComplete="init();"
                 viewSourceURL="srcview/index.html">
    <mx:Script>
         <![CDATA[
             private function init():void
                 iFrame.visible=true;
         ]]>
     </mx:Script>
     <mx:HBox width="100%" height="100%">
        <mx:Panel width="100%" height="100%" title="Test PDF" paddingTop="1" paddingBottom="1" paddingLeft="1" paddingRight="1" >
             <local:IFrame id="iFrame" source="http://localhost:9090/ApplicationTest/gi/printAction.do?method=printConfirmation&id=OTY" width="100%" height="100%" />
             <mx:ControlBar>
                 <mx:CheckBox id="cbVisible" label="IFrame Visible" selected="true" click="iFrame.visible=cbVisible.selected"/>
                 </mx:ControlBar>
         </mx:Panel>
    </mx:HBox>
</mx:Application>
this is the action that generate the pdf document : "http://localhost:9090/ApplicationTest/gi/printAction.do?method=printConfirmation&id=OTY"
Thanks

Hello,
Maybe you can use NavigateToURL like:
navigateToURL( new URLRequest( 'example.pdf), '_new' )"
http://livedocs.adobe.com/flex/3/langref/flash/net/package.html
http://livedocs.adobe.com/flex/3/langref/flash/net/URLRequest.html
Regards
Johnny

Similar Messages

  • Haw disable the saved icon of pdf document inside flex application??

    Hello,
    My gool is to disable the save icon of pdf document when i open the pdf document inside flex application.
    Haw you any ideas?
    Thanks you

    This isn't something that can be managed from the Flex end of things. You have to configure the document DRM.

  • How to load pdf in flex application for android os

    I loaded pdf in stagewebview which works good in IOS but not in android.
    The pdf file is loaded from the application storage directory.
    Please help me in resolving the problem. Thank you in advance.

    I think that my problem was i couldnt see pdf in my app running in ipad simulator of FlashBuilder in a flex mobile project in my laptop. what i read said that StageWebView create an instance of default browser in your machine. So that if we cant see pdf in ipad simulator is because also you cant see it in the default browser.
    Apart of this, i run this example in other machine, and i could see it, so its not problem of your code, but from your browser probably doesnt have pdf plugin installed. Correct me if i´m wrong.
    Cheers!

  • 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

  • Flex application embedded in a PDF performing a LC call

    Hi,
    I have a Flex application that is embedded in a PDF as a navigator which is supposed to invoke LiveCycle application deployed on a weblogic server using SOAP endpoint. The web service call seems to work fine if I run it from Flash Builder but once it’s inside a PDF, it would appear that the web service call is not reaching the application deployed on the Document Service server. The same application, however, does work if the server is deployed on JBoss.
    I was wondering if anyone has suggestions on how I should go about troubleshooting.
    Thanks, Lilliam.

    Hi,
    Creating a new project it's
    - File -> New -> Flex Project
    - Application Type -> Desktop
    Setting this will create the descriptor file and create the WindowedApplication as the root. This application will startup in a native os window.
    Here is an example of creating a simple os child window;
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Script>
            <![CDATA[
                import spark.components.Window;
                protected function button_clickHandler(event:MouseEvent):void
                    var window:Window = new Window();
                    window.title = "Hello Window";
                    window.width = 200;
                    window.height = 200;
                    window.open();
            ]]>
        </fx:Script>
        <s:Button label="Open Window"
                  click="button_clickHandler(event)"/>
    </s:WindowedApplication>
    The documentation will guide you the rest of the way.
    Mike

  • How do we display .doc files or .pdf files inside flex containers like Panel or Canvas?

    How do we display .doc files or .pdf files inside flex containers like Panel or Canvas? (i am talking about Flex web browser application and NOT air)
    thanks in advance.

    Perhaps I was not clear...
    We have a Word doc.
    We want to create a PDF doc from it.
    We want, in Word/VBA, to add content (annotation/text note=sticky) to the PDF from Word via VBA macro.
    What is the best way to do this?
    1. Use a VBA call to the PDF doc to execute the AcroJS (we would pass the content, location, etc for the note in the call) - what is this VBA call that will execute AcroJS in an PDF doc?
    2. Use AIC OLE objects to access the PDF doc.
    From your last answer - it sounds like I cannot add the annotation to the PDF from the Word VBA macro - is that correct?
    Our content is already in the Word doc - We want to execute a macro in Word that will add content to the PDF doc  - can this not be done in Word?

  • 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

  • Error while loading a swf created in flash cs4, inside a flex application

    Hi there,
    I have created a rotating logo in flash cs4 using motion presets, named logoRotar.swf. I have used this inside my flex application:
    <mx:SWFLoader width="33.33%" height="100%" source="assets/logoRotar.swf">
    When I execute the flex application, I get this runtime error message:
    VerifyError: Error #1014: Class flash.geom::Matrix3D could not be found.
        at global$init()
        at fl.motion::AnimatorFactory3D/getNewAnimator()
        at fl.motion::AnimatorFactoryBase/addTargetInfo()
        at logoRotar_fla::MainTimeline()
    I also tried adding import flash.geom.*; statement in my flex application, I still get the same message.
    Flash player 10,0,22,87 is running in my browser.
    Please help me out....
    Cheers!
    Deepak

    Get Flex 3.3 and use -target-player=10
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • 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

  • 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

  • Embedding Flex applications inside a portlet question

    I'm trying to embed a Flex application within a Java portlet on my WLP 10.3.2 portal. I'm able to display the Flex app in the portlet but now I'm trying to access data. Does anyone know of any documents that cover how to access Flex data from a portlet and how to access portlet data from the embedded Flex application?
    thanks

    When you mentioned you integrated Flex App inside a Portlet, are you using like iFrame tag or Browser Portlet where in iFrame tag you specify the Flex app url like that. If so, then you will not be able to share any data/information between this iFrame portlet and the actual other real portlets.
    If these Flex app has something like JSR based Flex portlets, then you can integrate them in WLP more easily. Another option is to consume these Flex Portlets as remote portlets using WSRP on WLP Side and the producer will be Flex Portal App (with flex portlets).
    See if this link helps: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=wsrp_1.html
    Ravi Jegga

  • I have an application on 4 computers. On 3, PDF files open as they should, withing the application. On the fourth the file is placed in "downloads" and then opens in a separate tab on the desktop(not inside the application).

    I have an application on 4 computers. On 3, PDF files open as they should, withing the application. On the fourth the file is placed in "downloads" and then opens in a separate tab on the desktop(not inside the application).  Any ideas on settings that might be causing this? It happens whether the application starts in IE11, Google Chrome or Firefox.
    This happens whether the "client" signs in over the internet or directly to the local host server.
    Thanks in advance

    One thing worth to check out: https://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html

  • Preview ppt,word,excel,pdf in flex using iframe

    hi,
    i am working upon flex 4.6 web application.i have a requirement in my project to preview ppt,pdf,word and excel inside flex container. i have achieved previewing only pdf by using flex-iframe 1.5.1, since pdf has browser plugginn. i am just binding the download path what i am getting from the server to the source of my iframe In HTML5 we can preview it using iframe by binding it to google docs viewer. i tried doing the same in flex but for me its showing that because of the security constaints of the owner cannot display it rather open it in another tab.
    kindly suggest me a way to preview ppt,word and excel inside flex container using iframe or if any other better or simple approach is there.
    kindly help... any help would be greatly appreciated.
    heres is my code-
    <mx:VBox id="vbxFrame" width="100%" height="100%" backgroundColor="#FFFFFF" includeIn="pdf" verticalCenter="0" horizontalCenter="0">
    <flexiframe:IFrame id="iframeFlexpdf" backgroundColor="#cccccc" width="100%" height="100%" horizontalCenter="0" verticalCenter="0" source="any url"/>
    </mx:VBox>

    Refer to the LOB Datatype sample.
    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/advanced/advanced.htm

  • View PDF with Flex

    Is it possible to load and view a PDF or a PDF thats been
    convereted to an SWF in a flex app? I've seen sites like
    docstoc.com / scribd.com / issue.com doing this. How are they doing
    this? I have not been able to find much on this subject.
    Would pdf2swf work for this? If so are the swf's generated by
    this tool compatible with AS3? Does anyone have sample code showing
    this example?
    I am pretty much stuck. I would appreciate any help or
    guidance. This seems to be a popular feature.

    i don't think there is a component to do this. But I think,
    you can open PDF inside you flex application using IFrame.
    You may want to vote for the feature request:
    https://bugs.adobe.com/jira/browse/SDK-13895
    Thanks,
    Gaurav Jain
    Flex SDK Team

  • View Encrypted PDF in Flex

    Hi,
    I'm trying to find out how to view an encrypted PDF programmatically in Flex. I would like to be able to do several things:
    1) View an encrypted pdf on my local machine and do it by decrypting with the password through ActionScript.
    2) Allow for viewing a pdf from a memory stream.
    So far, I have been able to view a PDF using the HTMLLoader class, but I don't think this allows me to enter the decryption password for a pdf programmatically. I already have a PDF that was encrypted using Adobe Acrobat's encryption. Any help would be greatly appreciated. Thanks
    -Aaron

    kilyas, I to once thought it would be simple to load pdf's
    into flex however there is no easy way to accomplish this task.
    Whenever a pdf is loaded acrobat reader is always going to want to
    take over the control of this. The one solution that I however did
    come up with is by using one of the HTML component renderers within
    flex. Something like this
    http://www.flexcapacitor.com/htmlcomponent/examples/HTMLFrameInApplication.html
    once you have that component loading html urls correctly you can
    then set the url straight to the pdf. This will then launch adobe
    reader inside of your html component and allow the user to "view a
    pdf within flex" kind of... The major flaw I've found with this is
    it seems to lag when the browser window containing the flex
    application is moved around as well as resized. If anyone has a
    better solution though I would also like to hear it.

Maybe you are looking for

  • LSMW Background schedule

    Dear friends, How i can schedule LSMW to process in background for a particular time. Regards, Praveen Lobo

  • Link Problem

    I had this problem in the past... My old problem can be viewed here at this Thread. I havent had to chage a link in a while, and i havent finished the website yet, however i was able to change links, but now its either stopped working, or im doing so

  • Icloud error message

    I get an error message when installing iCloud on my PC HResult 0x8007054F

  • Charging problem

    HI support team please help my I had problem  in my iphone 5 when my battery is empty and iPhone is shutting down I was connected chager but that don't working ,also I must open my phone and  charged  the battery in external charger and reconnect the

  • "This song can't be downloaded"

    I've purchased an album via the metro app (Win8.1) but the tracks won't download. Their status is either "This song can't be downloaded" or "PENDING". Here's a screenshot of how it looks like: http://i.imgur.com/kWPBHyc.png Thanks!