Xhow XDP file in AIR application

Does anyone knows how to load an XDP file in a HTML component
in an AIR application? Loading PDF files is no problem.
The XDP comes from a JAVA webserver. So, another possibility
would be to convert the XDP to PDF on the server, before sending it
to the AIR application. Does anyone knows if this is possible?
thanks,
Peter Vermeulen
Belgium

Having basically the same issue.  A blank screen appears.  I am using an iframe to display the PDF file (or trying to)
Windows 7 Professional
Acrobat Pro X
AIR 2.7
AIR SDK 2.7
Code:
<script>
function init()
  var out = document.getElementById('outDiv');
  if (air.HTMLLoader.pdfCapability ==
   air.HTMLPDFCapability.STATUS_OK)
   out.innerHTML =
    "<iframe src='pdf/newsletter.pdf' width='700' height='500'></iframe>";
  else
   out.innerHTML = "<h2>PDF capability not found</h2> <p>Error is: " + air.HTMLLoader.pdfCapability+"</p>";
</script>
I am receiving a 3202 error on return from HTMLLoader.pdfCapability (acrobat version too old)

Similar Messages

  • To save each Project file in AIR application separately

    Hello
    I'm on the verge of developing a Desktop AIR application for a particular purpose. Now this application has the facility to develop multiple projects. What I would like to do is to save each of this project in a separate file in a specified location.
    And moreover when I double click this project file, the AIR application should load with the specific project. My main purpose is to port project file of user's choice from one PC to another and open the same (assuming AIR application is installed in that machine) on double clicking it.
    So if a user has created 5 projects inside the application and wants to share only one of the project, he/she should be able to do that.
    A application that works the same way is MarketSamurai.
    I hope I have explained it clearly my requirement, kindly please provide me suggestions.
    Thanks

    You can register file types, sure. Did you check the API reference ?

  • Open files with AIR application

    Hy, I made an AIR application that manages video files. Is there any way that when I try to open a video file to be opened with my application and play it ? Not just open the application and browse for the video.
    Thanks.

    bump!
    really? noone knows the answer?

  • How to embed icon MAc dmg file in air application while in windows its working fine

    how to embed icon in mac os dmg file ..while in windows i ha set in air application .xml file in <icon> tag and its working..so to embed icon for MAc OS

    solution ::
    add this code in windows app of AIR
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication 
    xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" creationComplete="init()" layout="absolute" xmlns:local="*">
    <mx:VBox>
    <mx:Label text="Jay Mahadev" fontSize="32" />
    </mx:VBox>
    <mx:Script>
    <![CDATA[
    private function init():void
    if(NativeApplication.supportsDockIcon){ 
    var dockIcon:DockIcon = NativeApplication.nativeApplication.icon as DockIcon;NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE,undock);
    //dockIcon.menu = createIconMenu();
    else if (NativeApplication.supportsSystemTrayIcon){ 
    var sysTrayIcon:SystemTrayIcon = NativeApplication.nativeApplication.icon as SystemTrayIcon;sysTrayIcon.tooltip =
    "Stopwatch";sysTrayIcon.addEventListener(MouseEvent.CLICK,undock);
    //sysTrayIcon.menu = createIconMenu();
    public function undock(event:Event = null):void{stage.nativeWindow.visible =
    true;NativeApplication.nativeApplication.icon.bitmaps = [];
    ]]>
    </mx:Script>
    </mx:WindowedApplication>
    and also in windowapplication.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://ns.adobe.com/air/application/1.0">
     <icon>
    <image128x128>/icons/128x128.png</image128x128>
    <image48x48>/icons/48x48.png</image48x48>
    <image32x32>/icons/32x32.png</image32x32>
    <image16x16>/icons/16x16.png</image16x16>
    </icon>
    </application>
    Reference Link :::
    http://www.adobe.com/devnet/air/flash/quickstart/articles/stopwatch_dock_system_tray.html

  • Packaging AIRHelp .air file with AIR Application

    Hi,
    Has anyone had any experience packaging an AIRHelp project (generated by RoboHelp) with an AIR Application?  I want installation for our app to be simple as possible for the end user, and requiring them to install the help separately from the real AIR application seems to be complicated and error prone.  (In addition, ProductManager launch function cannot determine whether or not help has been installed, so there could be problems there.)
    Currently we are using a native installer for the AIR app. 
    Thanks in advance,
    -Tom

    Another thing I learned is that you might have the icon file embeded in the application somewhere and that removes it from the include in AIR package screen.That shows the same 303 error. See more detalis here : http://spy6.blogspot.com/2009/10/error-creating-air-file-303error-some.html

  • Textinput issue from external file in AIR application (Is it bcz of mask?)

    Hi
    I tried to load external swf in TabNavigator. In this file, I have some input text.
    I can key in external file's text input after load. But i got  "Security Sandbox Violation" error.
    Here is the code
    <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">
    <mx:TabNavigator width="100%" height="100%">
                        <mx:Canvas>
                                       <s:SWFLoader id="_swfLoader" source="C:\Users\bala\Desktop\TextSWF.swf"/>
                        </mx:Canvas>
    </mx:TabNavigator>
    </s:WindowedApplication>
    To solve security issue, i used load swf as bytes. After load there is no security issues, but i cannot key in external file's text input.
    Here is the code,
    <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[
                                  protected function CreationCompleteHandler(event:FlexEvent):void
                                            var loader:URLLoader=new URLLoader();
                                            loader.dataFormat=URLLoaderDataFormat.BINARY;
                                            loader.addEventListener(Event.COMPLETE, onSWFLoaded);
                                            loader.load(new URLRequest("C:\\Users\\bala\\Desktop\\TextSWF.swf"));
                                  private function onSWFLoaded(e:Event):void {
                                            var loader:URLLoader=URLLoader(e.target);
                                            loader.removeEventListener(Event.COMPLETE, onSWFLoaded);
                                            var context:LoaderContext=new LoaderContext(false, new ApplicationDomain());
                                            context.allowLoadBytesCodeExecution=true;
                                            _swfLoader.loaderContext = context;
                                            _swfLoader.load(loader.data);
                        ]]>
              </fx:Script>
    <mx:TabNavigator width="100%" height="100%">
              <mx:Canvas>
                        <s:SWFLoader id="_swfLoader" />
              </mx:Canvas>
    </mx:TabNavigator>
    </s:WindowedApplication>
    How can solve this issue. Is there anything to do with css?
    Is tabnavigator conatin default mask? How can user edit masked textinput without embed font?
    Thanks
    Regards
    Balasubramaniyan.S

    Thanks for your reply,
    Yes, the addedToStage handler is executed every time. I set my host application up to work exactly with that behaviour. There are several events going from client to host to help the communication inside the the application. I can't get behind the reason why it won't work.
    I made a case where I created a camera instance inside the host application and passed it over to the client via
    client.setupFunction(inArg: arg, sendCamera: Camera);
    That works. But I also need a microphone, and I can't get the mic working over with the same technique. And also I'd prefer to have it all in the client, cause I designed the application model to work exactly in that fashion.
    I guess it's a secruity sandboxing problem, but I can't find any documentation on this issue.
    Thanks, maybe another solution can be found here. ;-)

  • Creating an xdp file from flex/java application

    Hi,
    I have an application in Flex 4  and As 3.When I click a button in flex application I have to generate a file in java with
    extension xdp.When I try this locally(Run as java application) the file is generating  correctly.When i compile the applic
    ation and try it, the file is not writing correctly.Do someone have any idea about creating an xdp file from flex application?
    i am using blazeds to connect java and flex4.When i opens the file in notepad the file is writing correctly.There is only problem in openig an xdp file...
    please help me.

    specifically:
    Runtime.getRuntime().exec("filename.exe")

  • How can I write my Adobe AIR application tracing lines into a log file

    I Have a question about log files for AIR application
    How can I make my application writing all tracing and exceptions into a log file?

    I think if you pubish a -debug SWF it will log to flashlog.txt

  • How do I protect my FLV files? or How to encrypt and decrypt FLV files using AIR?

    Hi,
         I am working on an AIR application, which is developed on eLearning concept. The application mainly deals with flv files. The application contains a video player component, which will stream flv files from an Apache Server and played in my application. Here my concern is I would like to protect my flv files some how against users who may stream them from Apache Server and use them without my application.
         I thought of with an idea to do it. But I don't know whether it will work or not. So I am requesting for your suggestions and better ways to do this with a sample.
    Here is my thought:
    I would like to place the encrypted FLV files at Apache Server side [ Need to know how to encrpt the FLV files using Flex]
    As my AIR application send a request for a FLV file, the Apache server should send the decryption key and a stream of FLV file.
    AIR application should take the decryption key, stream of flv file and it should capable enough to decrypt the FLV file and play it in my application. [ But I don't know how to encrypt/decrypt FLV files through flex]
    I can do encryption of FLV files using Mac Address of Apache Server system and using Java. But I don't know how can I decrypt the same FLV file ( Encrypted using Mac Address and java ) at AIR application side.
    So I would be greatfull If any body help me in encrypting and decrypting of FLV file with a sample using Flex 3.0.
    Thanks
    Sudheer Puppala

    russellfromblackburn south wrote:
    Is it because the portable drive is NTFS format and the Mac wont recognise this? If so what do I do?
    Yes, this is exactly what is causing the problem. Macs cannot write to NTFS formatted drives, only read. You must move the documents to the internal HDD/SSD of the Mac to be able to edit them.
    Or, since you say you don't want to move the documents to the internal storage, you'll need to format the external HDD as FAT32.

  • Air application loading flex applications(no Air) with flex linked as RSL.

    Hello
    I am trying to make an AIR application which loads number of flex applications(no AIR). The subapplications are using the Flex SDK as a RSL, and each of them can use different version of the SDK.
    The problem is that the subapplicationsare trying to load the needed SDK from local filesystem, which they are not permited.
    public class CrossDomainRSLItem extends RSLItem
         override public function load(progressHandler:Function,
                                      completeHandler:Function,
                                      ioErrorHandler:Function,
                                      securityErrorHandler:Function,
                                      rslErrorHandler:Function):void

    Hi again.
    Is there any way to reliably edit the trust files with AIR application?
    As I see it we have to make the user to add our folder to the trusted locations, or to use some application which can find and write in the FlashPlayerTrust (native for the specific OS installer for example.). (even finding this directory with an AIR application seems not 100% reliable).
    Thanks in advance for you help.
    Ps: Right now I am trying to patch this.
    I compiled some sub-applications using custom preloader class(the controlling class, not the UI), where I removed the RSL loading. After that in an ApplicationDomain I load all the RSLs with loaders. After that I load the sub-application in the same domain. On paper this should work, but the sub-application can't find the classes from the RSLs(the first exeption is that there is no definition for spark.components.Application)

  • Hi for All,  Pleeeeeeease help me, Update Air application problem

    Hi guys,
    I have  big adobe-air ajax based application installed in my computer ,I have updated some files in my application, and generate the new(updated) version of  the air file and put it in the server .My application size is 300 MB. The  problem is that the  update framework  will download and reinstall all the files of air application(300 MB !!!) ,
    Is there any way to reinstall only the updated files of my application without need to reinstall all the files during the update process ????
    Regards

    Hi Anil,
    If you go to RSPLAN there you can go to Portal link (it must be configured properly in system)
    In portal there will be wizard where you can easily go step by step and create planning functions and sequences like below:
           1.      You choose the appropriate InfoProvider.
           2.      You create one or more aggregation levels.
           3.      You create one or more filters.
           4.      You create one or more planning functions.
           5.      You create a planning sequence.
           6.      You test the planning model.
    which is clearly explained in below link
    http://help.sap.com/saphelp_nw70/helpdata/en/43/1d2440301a06f4e10000000a422035/frameset.htm
    after doing this you can create a query on aggregates you have created above and then make query input ready i.e planning enabled for keyfigures you want like mentioned in below link:
    http://help.sap.com/saphelp_nw70/helpdata/en/43/1d023a41130bd5e10000000a422035/frameset.htm
    then you can run query in Analyzer and save it as a work book after proper drilldown which can be used as template.
    Hope you understood basic thing, as you going on doing u will know clearly every thing.
    Ravi

  • How to open and show a word, excel, ppt file in Adobe AIR application?

    Dear All,
    I have a requirement to open a MS- word/ Excel file in the AIR application.
    On click of a brows button a file reference box opens...on any file
    selection...it should open in the application itself...
    so plz let me know the solutions u have...

    Here is your basic issue: setting a classpath (and presumably compiling and executing a program) is one of the most basic, fundamental concepts in Java. I would advise you to follow JVerd and Annie's links and get started on a tutorial. Try writing a simple HelloWorld application before delving into POI. When you are more comfortable writing and compiling programs, and post a specific question, it will be much easier to help you.
    - Saish

  • To open a Excel and Doc file inside the AIR application

    How to open a Excel and Doc file inside the AIR application.  I have opened the PDF file inside the AIR application.  But i got stuck in opening the Exce and Doc file.  Please help me in this issue.

    AIR does not support this inherently. However, you could write code to parse these file formats. For example, the following is an ActionScript 3.0 library for reading and writing Excel files:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1375018

  • Unable to send file in binary mode to ftp server using AIR application

    Hi,  Can any one help me. i am trying to send local files to ftp server  in binary mode from AIR application using sockets.
    I cant use PASV mode for this FTP server because security restrictions. when i am trying to send Binary command i am always getting
    error code 500 which is unrecognized command. I googled for solutions but i cant find any one using Binary mode to send data every example is using PASV mode to send
    file.
    code example:
    private function upload():void{
    sendCommand("binary ");
    private function sendCommand(arg:String):void {
                                            arg +="\n";
                                            s.writeUTFBytes(arg);
                                            s.flush();
    in response i am getting unrecognized command.

    I'm successfully using an ftp example from http://http://projects.maliboo.pl/FlexFTP/
    that I converted to spark and uses a popup progress window.
    If you don't need to use sockets I can post a sample project.
    I believe I still connect with PASV, but have no problems sending Binary files.
    I don't think they're commands that are dependent on each other

  • How to play and stop flv files through NetStream in AIR Application

    Hi,
    In a folder I have 'n' number of flv file, which are DRM protected. when the user try to play those files for the first time through my AIR application, it will prompt for username and password and gets the license/voucher from the server and store it in AIR Runtime. so that from the next time onwords it won't prompt for username and password as because it already has license/voucher.
         My problem is assume there are 500 files, such that for each file the user has to enter his credentials[username and password]. which is a stupid thing. I want to avoid this process by implementing this process internally/programetically. By playing/accessing each file through netstream from the folder and setDRMAuthenticationCredentials for that file and stop the stream. Here I am able to play each file but I am failed to stop it. I mean to say I will get the license for all the flv files internally[while loading my AIR application], such that user should not be interrupted for his credentials for each file.He should play as if he is accessing/playing a non-DRM protected file. I will be very thank full if any one help me out in this.
    public function init():void {
          connectStream();
          getLicenseForAllFiles();
          videoStream.addEventListener(DRMAuthenticateEvent.DRM_AUTHENTICATE, drmAuthenticateEventHandler);
          ppt_videoStream.addEventListener(DRMAuthenticateEvent.DRM_AUTHENTICATE, ppt_drmAuthenticateEventHandler);
            private function getFilesRecursive(rootFolderPath:String):void {
                //the current folder object
                var currentFolder:File = new File(rootFolderPath);
                //the current folder's file listing
                var files:Array = currentFolder.getDirectoryListing();
                //iterate and put files in the result and process the sub folders recursively
                for (var f = 0; f < files.length; f++) {
                    if (files[f].isDirectory) {
                        if (files[f].name !="." && files[f].name !="..") {
                            //it's a directory
                            getFilesRecursive(files[f].nativePath);
                    } else {
                        //it's a file
                        fileList.push(files[f].nativePath);
                        //Alert.show(""+files[0].nativePath);
                        var fileName:String = files[f].name;
                        if(fileName.indexOf("PPT_")!=-1){
                            ppt_videoStream.play(files[f].nativePath);
                            ppt_videoStream.pause();
                        videoStream.play(files[f].nativePath);
                        videoStream.pause();
                private function connectStream():void {
                    videoConnection = new NetConnection();
                    videoConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                    videoConnection.connect(null);
                    ppt_videoConnection = new NetConnection();
                    ppt_videoConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                    ppt_videoConnection.connect(null);
                    videoStream = new NetStream(videoConnection);
                    videoStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                    video.attachNetStream(videoStream);
                    ppt_videoStream = new NetStream(ppt_videoConnection);
                    ppt_videoStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                    ppt_video.attachNetStream(ppt_videoStream);
             private function netStatusHandler(event:NetStatusEvent):void {
                switch (event.info.code) {
                    case "NetConnection.Connect.Success":
                        //connectStream();
                        break;
                    case "NetStream.Play.StreamNotFound":
                        trace("Unable to locate video: " + videoURL);
                        break;
                private function drmAuthenticateEventHandler(event:DRMAuthenticateEvent):void {
                    videoStream.setDRMAuthenticationCredentials("adobe", "adobe", "drm");
                private function ppt_drmAuthenticateEventHandler(event:DRMAuthenticateEvent):void {
                    ppt_videoStream.setDRMAuthenticationCredentials("adobe", "adobe", "drm");
    Thanks
    Sudheer Puppala

    Hi,
    Please go through following links..this will help you:
    http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zin c-or-air-flex-or-flash/
    http://forums.adobe.com/thread/753959
    http://blog.unthinkmedia.com/2008/09/05/exporting-pdfs-in-flex-using-alivepdf/
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

Maybe you are looking for