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

Similar Messages

  • Accessing a service from a Flex application embedded within a PDF document

    Is it possible to access a Web or EJB service from an application that as been embedded in a PDF document.
    I keep getting the exception "Error #2048: Security sandbox violation:
    Is there a work around ?
    The application embeds perfectly in the PDF document. Very impressive.
    Thanks.

    This is version 8.1SP5?
    I don't know what the problem could be, but, one common problem is having the wrong jars in the client classpath. For 8.1 clients that use the "t3" protocol, ensure that the "weblogic.jar" is in the classpath and that the thin client jars (the wl*.jar files), are not in the classpath.
    Also, it looks like the problem may have something to do with authentication. Do you get the same error when you don't specify a username/password? Did you specify a username without a password? or vice-versa?
    Tom

  • 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

  • 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

  • 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

  • Embedding Fonts in a Flex application -- Legal issues?

    I am currently building a Flex application for a Client. The Style guide they have provided shows Univers 55, Univers 65, and Univers 45 as the main fonts for the site and the app.
    Page 1567 of Using Flex 4.5 states
    Note: 
     Check your font licenses before embedding any font files in your applications. Fonts might have licensing restrictions that preclude them from being stored as vector information.
    The fonts they are using in the AI file for the design document appear to be older version Adobe 1.0 TrueType fonts dated 30th June 1997.
    I can not find the original license for these fonts, but such licenses may pre-date embedding technology, so are we allowed to embed them?
    As an alternative could we safely use the OTF Univers LT Std family and are there any differences?
    Message was edited by: lingoguru

    As far as i see it, it's mainly just for convenience.
    Embedding an image into application removes the need for you to store it elsewhere on the server, as it becomes part of the .swf file.
    From personal experience it's very handy with small images, as it doesn't increase the size of the .swf file too much, and it means you don't have to keep track of them when distributing your release build.
    you don't have to embed anything, you can simply reference it by location instead, but you'll experience a slight delay as it's loaded into the application on request.
    The need for using this feature depends entirely on what you're trying to accomplish.
    If you're making something like a large image gallery, it'll completely remove the need for wait for pictures to load when  you're scrolling through them. However i wouldn't recommend it as you'll send your application size will go through the roof, and the waiting time for the whole application to load would be fairly extensive.
    If you have an application with like 40 small ~3kb images using for navigation icons or something, you might as well, it's just convenient and won't impact the loading time by too much.

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

  • Performance Of Flex Application?

    Hello all
        Recently I went through video tutorials of flex and found it to be great.But I have one question regarding performance. If I am not wrong then Flex application works like this, Entire application is converted into swf file and for navigation between pages of application there is concept of states.Whatever data is required for different states is  get by using HTTPService,WebService etc . wheras if  we talk about normal web application built using PHP every page and data is loaded from server .For each navigation, data plus markup(HTML/DHTML CSS javascript etc.) to show that data or content is loaded.It has a benefit of downloading only that part of application which is required.
           For example if we have shoping store applicatiion and it has a search page and product list page to display products list in different formats like grid or table then markup plus data in normal web application will be loaded with each request.If user click on search page only then that  page is loaded from server and if user want to view the search results in table format only then that page is loaded.
       I want to know how this work in Flex application.For data part It is clear that for each state whatever data is required is get by using services like HTTPService,WebService etc. But how state presentation part is get?Is the entire swf file containing all states related information is loaded before running the applicatio? For example as in our previous example presentation part of all states like shopping store serch state, product list in table format state and product list  in grid format state in the begining of application .later on if user click on search link it will already have that state view information and it will get data for search  part and put that data into view and present it to the user.For search result also it will  be already having information about how to present that data  so it will get data  only and present it to user.
        If Flex works as i stated above then if we have very big application with many different stats then user has to wait for the loading time off all the states.Or there is provision for some backgroud loading of states that as soon as user request the application first time he gets the first view and then on other states are loaded in backgroud?
       If all the states are loaded at begining of application then what will be performance of application with many states?(Means in that case swf file of compiled application will be of big size and it will take time to load in browser.)
      can anybody tell  me about all  these things in detail.I am sorry if my understanding of Flex is wrong.I am newbie.
    Thanks in advance .

    This seems more of an RIA performance question than a Flex specific one.  Honestly though, modules aren't needed often in my experience (depends greatly on requirements).
    You say that "only the part of the application that is needed" is downloaded, while this is technically true (a bit of an oversimplification as there are other advantages to be had from RIAs), you still have the round trip time required for every single request to the server.  Since an RIA is generally a single bulk download (which may not even be needed if there's caching going on), usually you're talking about a single wait of a few seconds for loading vs multiple waits of a few seconds for page refreshes. 
    Even if the initial load time is as much as ~10 seconds (for the first visit), does that outweigh the 1 to 3+ second page refresh penalty constantly interrupting the user's work flow over time?  Also consider Flex's AMF protocol, which blows competing formats (esp XML based) out of the water on performance.  RIAs (especially Flex) win the performance game.

  • 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

  • Setting intital data in Workspace embedded Flex Application

    I created 2 processes, one has an embedded Flex application in it. My first process has an output of type XML that is passed to the 2nd process using events. I have attached an Event Message Template to the Event so i can drill down into the data schema. I am able to receive and see the XML data in the receiving process. My Flex application is set to data type Form and has its own schema associated. What I am trying to do using the SetValue service is set some of the values in the Flex schema to the values of the XML data received from the first process.
    My Flex application has an "initialDataHandler" function that receives a DataEvent event from LC Workspace. Using the SetValue service and drilling down into the schema doesn't seem to set the DataEvent event data of the Flex App.
    Does anybody have any ideas on how to set the initial data of the Flex App so the data will be pre-populated when a user opens up the application?
    Thanks,

    Mike,
    I double checked with engineering and this cannot be done. I though that creating a custom render service would work, but it wont since it has to return a document variable and we can only change the data of a swf when its in a Form variable. And there is no way to go from Form to document variable because one contains the content and the other one is only a pointer.
    You can define default data on the variable settings under Default Data, but this data is essentially hard coded, which is not ideal.
    Youre only option at this point is to populate from the formInitData event in the swf form which can call a database or a web service.
    Engineering will make that Default Data a variable in a next release of the product which should get you across this problem but nothing to help us now.
    Sorry for the confusion.
    Jasmin

  • Securely embedding a flex application in a J2ee application

    Hello,
    I was able to embed a Flex application with blazeDS running inside TOmcat with my existing webapplication. Note: I have configured blaze DS to run withing my existing web applicaiton lets call it "MyWebApp" by just mapping the messagebroker servlet in web.xml.
    Now, MyWebApp uses form based authentication. My flex app is just a part of one of the pages in MyWebApp. The user authenticates with MyWebApp.
    Question is: In my Flex application HOW DO I ENSURE THAT THE USER HAS logged in using MyWebApp.???..
    On the same lines, how do I secure the Remoting endpoints on the server?

    Hey Thanks for replying.
    My toomcat web.xml aslready has the auth-method set to 'Form'. So I d onot understand why should I define it again in the services-config.?.. I refered to the live docs but they do not explain how this will work
    Appreciate your help!!
    <security>
        <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat">
            <per-client-authentication>false</per-client-authentication>
        </login-command>
       <security-constraint id="trusted">
            <auth-method>Basic</auth-method>
            <roles>
                <role>employees</role>
                <role>managers</role>
            </roles>
        </security-constraint>
    </security>   

  • Issues embedding swf in pdf document?

    I have created a small application to illustrate Snell's law as a flash file.
    The idea is to integrate it in a online educational book and I have already done so with several simple animations.
    This was to be my first application with user input other than start/stop buttons.
    The application works fine in a browser or as a stand-alone flash file but when I embed it in the pdf file it doesn't execute properly, nothing happens when buttons are pushed to calculate the equations.
    This is my first question here so I don't know how to add my application or an example of it embedded in a pdf document but I guess including them from a filehosting site could work?
    The swf file:
    http://www.filehosting.org/file/details/408159/Snells_Law.swf
    The PDF file:
    http://www.filehosting.org/file/details/408160/test.pdf
    I used CS6 Flash professional to create the SWF file.
    thanks in advance
    edit: also including the original fla-file: http://www.filehosting.org/file/details/408478/Snells_Law_3.fla
    By moving a piece of code up through the lines I have found that after line 377, nothing gets executed. Any help would be greatly appreciated.

    I see no syntax errors and your code works well so there shouldn't be any issue embedding it. In Acrobat XI I get a preview of the plugin required to view the SWF and I must activate the plugin (very common on windows) by clicking on it. Once I do the SWF embedded in your document works for me, although it doesn't overlap the preview which is stretched to the size of the page whereas the plugin container is the size of the original document. So it works fine for me when viewing as a PDF and if you resize it down to its original document size it should overlap the preview properly. Plugin containers often require permission/activation (a mouse click), that's normal.
    I was able to target 10.1/10.2 as the SWF export target rather than FP11. You may want to try downgrading your publish preferences to that which should reduce the overhead of the plugin container. Outside that I see no reason you should have an issue embedding this. I don't have a full copy of master at home to create the PDF to test (openoffice isn't really capable of it) so you'll have to test that yourself but the PDF you linked works for me.

  • Fully embedding fonts in PDF

    Hi,
    I had a piece of information but I can't seem to find it anymore so I have to ask ...
    This is about understanding limitations of fully embedding fonts in a PDF (from Indesign Server). Actually it's about one limitation in particular. I know fonts with licensing issues or fonts that are marked "embedded not allowed" will not be embedded. Also, there is a threshold that I need to set.
    So, I recall reading somewhere that Indesign will not fully embed "standard" fonts. Is that correct and what is this standard fonts category?
    Oh, reading through some posts, I noticed lots of people and experts ask why does one need fully embedded fonts. That's a good question and I don't know the root reason but in my case it seems that some regulatory agencies (in the life sciences/pharma domain) require PDFs with fully embedded fonts.
    Many thanks
    Cristian

    On behalf of Adobe:
    (1)     For both InDesign “PDF export” (including InDesign Server) and Illustrator “save as PDF” functions, most but not all of the .joboptions file font embedding options are totally and utterly ignored. The options that are ignored are the Embed all fonts, Embed OpenType fonts, Always embed, and Never embed. Those options are observed by Distiller and the PDFMaker components of Acrobat.
    (2)     These applications will attempt to embed all fonts referenced by the document, regardless of the settings of the .joboptions file. The only reason why a font would not be embedded in a PDF file would be if (a) the font was unavailable (i.e., not installed on the system) or (b) the font's embedding permissions do not permit embedding for at least preview and print privileges. Thus, if you use the so-called Standard .joboptions (strongly not recommended for any graphic arts purposes), even the base 14 fonts (four faces each of Helvetica, Times, and Courier along with Symbol and ITC Zapf Dingbats will be embedded if your document references them.
    (3)     The subset threshold value of 0 (zero) may effectively cause all the glyphs of a font to be embedded in some, but not all cases. This will work for many if not most Type 1 fonts and some smaller TrueType and OpenType CFF fonts. Note that embedding all glyphs in a font is not the same as embedding a full font. For OpenType and TrueType fonts, InDesign and Illustrator never embed all the tables of the font. Such unembedded tables include those used for pair kerning, advanced OpenType features (such as ligatures, alternate representations, contextual alternates, small caps, old style figures, etc.), and extended metrics.
    (4)     There are plenty of bubbameissas out there with regards to the benefits or liabilities of either fully embedding or subset embedding fonts. What is true is that: (a) Acrobat never uses the embedded font for text editing - you must have the font installed on the system in order to do such edits. (b) Subset embedding or not is totally irrelevant to what a RIP does when rendering text, either for PostScript or direct PDF RIPs. Neither subset or full embedding is any more reliable than the other and the specifications of PostScript and PDF do not permit the RIP to replace the embedded font with a font with a similar name - urban legend notwithstanding!!!! (c) Third party plug-ins to Acrobat or applications that claim to allow you to edit PDF files with embedded fonts may be illegally letting you do so if the embedding permissions do not permit embedding for editable embedding or installable embedding - most fonts do not provide such embedding permissions and since the fonts are missing metric information, such editing may be somewhat lacking in quality or features.
    (5)     In fact some very non-tech-savvy organizations have posted requirements for full embedding of fonts in submitted PDF files (I have personally seen one such requirement by some international bureaucracy). They can post such bone-headed requirements based on limited understanding of PDF and PDF workflows, but that doesn't mean that anybody actually provides such PDF files. If in fact you run into such requirements, I would appreciate it if references to same can be forwarded to my attention by private message on these forums.
              - Dov

  • Drag between two flex applications?

    Hi,
    In the project I'm working on I display tree which the user can manipulate by dragging and dropping. So far I have a tree in a flex application, and I've implemented dragging and dropping. I'd like the user to be able to drag from one tree to another, but as my flex application will interact with my HTML pages, I don't want to waste space by having room for the second tree all the time.
    The flex application is embedded on a HTML page, and I'd like to be able to have two instances of my flex application and have the user able to drag between them. Is this possible? I did wonder if it would be possible to implement something like this using a javascript callback, but is there a standard way of doing this?
    Thanks,
    Jonny

    Hi Jonny,
    I've also faced with problem of draging between two applications.
    It's possible to transmit data between these applications, but it's only a half of the task.
    The main problem it to handle mouse release error on second application.
    There is no problem to handle that user drag object and move it out of the component - it's ok.
    After that we should handle the position of droping this object.
    Also it's no problem to handle that mouse is on over component and left button is pushed (at this handle create imitation of starting draging). But it's impossible to handle first mouseUp event. This event don't visible in html (object don't rise mouseUp event) and don't handle in flex. I'm still try to understand the way to get round.
    The only way I've founded is to hide flash object on mouseOver event and show an image instead of it until mouseUp event raised. After that show flash and calculate the position of draging. But's if you use tree it's not a good way.

Maybe you are looking for