PDF in AIR

I am going to develop an AIR application with a main purpose of rendering and printing a PDF stream sent from the server.
My question is: will I be able to print a PDF content from AIR application or I will have to use Acrobat Reader controls?
Thanks

Adobe AIR applications render PDF content using the HTMLLoader class,
the WebKit engine, and the Adobe® Reader® browser plug-in
http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7eb4. html
regards
Leonardo França
Adobe Certified Expert Flex 3 with AIR
Adobe Certified Expert Rich Internet Application Specialist v1.0
Adobe Certified Expert Flash CS3 Professional
Certified Professional Adobe Flex 2 Developer
Adobe Certified Professional Flash MX 2004 Developer
http://www.leonardofranca.com
http://twitter/leofederal
Manager AUGDF - Adobe User Group do Distrito Federal
http://www.augdf.com.br
http://twitter/augdf
Zolotoj escreveu:
I am going to develop an AIR application with a main purpose of rendering and printing a PDF stream sent from the server.
My question is: will I be able to print a PDF content from AIR application or I will have to use Acrobat Reader controls?
Thanks
>

Similar Messages

  • Opening pdf in AIR HTML browser developed using Flex

    Hi,
    I am trying to open a PDF in AIR Browser. The Air browser supports this only if i have installed the Acrobat reader 8.1 and above, for versions lower than 8.1 it is not supporting and not opening the PDF file. In another scenerio I have installed both Acrobat reader 9 and Acrobat proffessional 7 but the Air browser fails to open the PDF because it comparing the version against proffesssional instead reader. Actually the pdf should open in AIR browser since I have installed Acrobat Reader 9. Please suggest how to overcome this issue.

    I'm not sure I quite follow your original question. If you are asking if you load a local html file or set the htmltext of a HTML control in Adobe AIR and want to use @font-face, then I defer to Joe's answer.
    But, if you set the location to a page on a web server and you have Adobe Air 1.5 installed, then @font-face does work. I tested this on two pages. One is http://www.taptaptap.com/ and the font Fertigo (which I don't have installed on my machine) showed up. I also tested it on http://www.zeldman.com/dwws/ which has fallback support for IE 4 and up. Some things to remember, IE does not support the format attribute in @font-face. And IE only supports .eot file format. However, as Joe mentioned, using local to see if the font is installed on the users machine to prevent blank space from showing, is not supported. Please refer to the list of unsupported web-kit features Joe mentions in another post.
    Message was edited by: durbonix

  • PDF in AIR - read PDF scroll position?  No events.

    I'd like to capture scroll events when viewing a PDF file, and I can't figure out how to do it (or if it can be done).
    I have a pretty simple AIR application, where I'm trying to render PDF content in AIR.  This includes:
      <mx:HTML id="myHTML" height="600" width="{this.width-40}" location="http://www.google.com" />
        myHTML.addEventListener(Event.SCROLL, imageScrolled);
        myHTML.addEventListener(Event.COMPLETE, complete);
        myHTML.addEventListener(Event.HTML_RENDER, htmlRender);
        myHTML.addEventListener(Event.LOCATION_CHANGE, locationChange);
    These events all trigger just fine when normal web pages are loaded.  As soon as a PDF URL is displayed, there are no events, when scrolling the PDF.
    Has anyone found a workaround for receiving these events?  I suppose I could look into scripting within the PDF file (would this work?), but I was trying to handle generic PDF files.

    But if you want to interact and control a PDF from AIR you can make it using JS.
    http://www.adobe.com/devnet/acrobat/javascript.html

  • Commenting functionality not available when I open a pdf in air application

    commenting functionality not available when I open a pdf in
    air application. Adobe documentation says that is expected with
    adobe air 1.0 but I still have the same problem even if I use the
    latest air runtime

    Back up all data.
    In the Finder, select Go ▹ Go to Folder from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
    /Library/Internet Plug-ins
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    I've seen an unconfirmed report that the "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you might need to remove it as well, if applicable.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Open microsoft word and pdfs in AIR

    Hi . is it possible to open microsoft word docs and pdfs in AIR?
    Cheers

    Hi,
    I'm using Safari and FireFox -- mostly Safari.
    I looked in Safari preferences, and can't tell what to change.  It says "New windows open with Homepage".  Do I change to "Empty Page"??  Also, I looked at FireFox preferences, but can't see what to change.
    Love your pic
    JoAnn

  • Printing a PDF via Air

    Hey!
    With alivePDF I can create and save from Air a PDF-Document. I can also load this document in a new window in Air. But how can I print it from air?
    Printing via htmlLoader-Object raised the same error like in my post about printing a runtime created htmlloader-Object (http://forums.adobe.com/thread/591929?tstart=0).
    I like to use the start2() from Air2Beta2 option for printing without dialog. but how can i send this pdf content to the print-object?
    Is this possible?

    You have to be careful when using the ActiveX control to communicate with system functions like printing.  Because it can be embedded in anything that supports ActiveX, some functionality is limited from being called from JavaScript as it may interfere with the host application.
    Check out the IAC API Reference (also included with the SDK) and the methods under AxAcroPDFLib.AxAcroPDF.  There are some print functions in there (like PrintAll) that you can call on the ActiveX control directly, as in from your doPrint() method in your HTML page without using the hostContainer.  You would basically just call:
    pdfObject = document.getElementById("PDFObj");
    pdfObject.PrintAll();
    These methods were designed specifically to work with the ActiveX control when embedded in a host application, and can be used to print a PDF embedded in a web page.

  • Dispatching an event from a PDF to AIR?

    I would like to put a button in a PDF using Acrobat, that,
    when clicked, dispatches an event that can be picked up by my
    displaying AIR application. The PDF is being displayed in AIR using
    HTMLLoader in an HTML object.
    Is this possible?

    Try the following. On the first frame of the movieclip place
    the following code.
    // Event Routines //
    var dispatchEvent:Function;
    var addEventListener:Function;
    var removeEventListener:Function;
    mx.events.EventDispatcher.initialize(this);
    Then on the "x" frame of the movieclip, place the following
    code:
    var evt:Object = new Object();
    evt.type = "framereached"; // this can be whatever you wish
    to listen for
    evt.target = this;
    dispatchEvent(evt);
    This is how you would do this in a class and it should work
    just as well if coded directly onto a frame. However, to make this
    more versatile I would place it in a class with a public function,
    for example, name throwEvent(). This public method would then
    execute the above code and could be called from any frame. You
    could even add another item to the evt object that would contain
    the frame the executed the event.
    Tim

  • Open local PDF inside Air iOS app

    I am developing an AIR for iOS app for the iPad. My client would like the app to open a local PDF file within the app, rather than launching an external app (such as Adobe Reader). This is to give a seamless experience when using the app. I've seen that distriqt.com produce the 'PDF Reader' Native Extension based on www.vfr.org. VFR appears to have a series of interface controls that open along with the PDF, which I don't require. I emailed Distriqt a week ago to clarify, and have had no response.
    Does anyone know of any other solutions to open a PDF inside an AIR iOS app?

    I've managed to load a PDF successfully inside my AIR iOS app, using the code from http://thatsthaway.wordpress.com/201...1/#comment-102.
    However, I've just come across a weird feature / bug when viewing a PDF using stagewebview. I have a PDF that contains several internal hyperlinks, each navigating to a page within the same PDF document. If I select any of the hyperlinks, they do jump to the intended pages. However, if I reselect the same hyperlink again, it no longer works. If I select a different hyperlink, and then reselect a previous link, it will then work, but if I select the same hyperlink twice in a row, without selecting a different hyperlink in between, the link fails to work. The PDF hyperlinks all work ok outside of my app, on both Windows desktop and an iPad, just not inside of the AIR app.
    Any ideas?

  • Android - StageWebView - Loading PDF Bug - AIR 3.9

    I think I've discovered another bug in AIR 3.9. Tested on Galaxy S4, and Nexus 7
    When using the StageWebView on Android, PDFs will not load correctly. This works correctly on iOS and Desktop.
    a Event.Complete event is dispatched, but all you ever see is a white square with Zoom buttons on the bottom right.
    Has anyone else ever experienced this?
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   applicationComplete="init()"
                   xmlns:s="library://ns.adobe.com/flex/spark" applicationDPI="160">   
        <fx:Script>
            <![CDATA[
                import spark.components.Application;
                public function init():void{
                    this.stage.scaleMode = StageScaleMode.NO_SCALE;
                    this.stage.align = StageAlign.TOP_LEFT;
                    var webView:StageWebView = new StageWebView();
                    webView.stage = this.stage;
                    webView.viewPort = new Rectangle(50,50,this.stage.stageWidth-100, this.stage.stageHeight-100);
                    webView.addEventListener(Event.COMPLETE, this._onLoadComplete);
                    webView.loadURL("http://labsdownload.adobe.com/pub/labs/flashruntimes/shared/air4-0_flashplayer12-0_release notes.pdf");
                private function _onLoadComplete($event:Event):void{
                    trace("COMPLETE");
            ]]>
        </fx:Script>
    </s:Application>

    I have also this problem on GalaxyTab2 10.1, Android 4.0.3, Air 3.9.0.121
    Complied with Air3.9, Asc 2.0.0.354071
    webView = new StageWebView(true);
    webView.stage = this.stage;
    webView.viewPort = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
    webView.addEventListener(LocationChangeEvent.LOCATION_CHANGE, _onLocationChange);
    // webView.loadURL(new File(new File("app:/pdf/arbo.pdf").nativePath).url);
    webView.loadURL("http://www.spacex.com/sites/spacex/files/hyperloop_alpha-20130812.pdf");
    // webView.loadURL("http://www.google.com");
    11-16 14:31:19.979: I/dalvikvm(23528): Could not find method android.webkit.WebSettings.setAllowUniversalAccessFromFileURLs, referenced from method com.adobe.air.AndroidWebView.11-16 14:31:19.979: W/dalvikvm(23528): VFY: unable to resolve virtual method 635: Landroid/webkit/WebSettings;.setAllowUniversalAccessFromFileURLs (Z)V
    11-16 14:31:19.979: D/dalvikvm(23528): VFY: replacing opcode 0x6e at 0x003a
    11-16 14:31:20.002: I/webclipboard(23528): clipservice: android.sec.clipboard.ClipboardExManager@418a32f8
    11-16 14:31:20.033: D/FirewallPolicy(227): getURLFilterEnabled(true)
    11-16 14:31:20.041: D/FirewallPolicy(227): isUrlBlocked - Policy disabled
    11-16 14:31:20.041: I/ClipboardServiceEx(227): dismissUIDataDialog. service check
    11-16 14:31:20.049: D/WML_SISO(23528): InitPasteboardJni
    11-16 14:31:20.119: W/webcore(23528): java.lang.Throwable: EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.
    11-16 14:31:20.119: W/webcore(23528):      at android.webkit.WebViewCore$EventHub.removeMessages(WebViewCore.java:2475)
    11-16 14:31:20.119: W/webcore(23528):      at android.webkit.WebViewCore$EventHub.access$12600(WebViewCore.java:1217)
    11-16 14:31:20.119: W/webcore(23528):      at android.webkit.WebViewCore.removeMessages(WebViewCore.java:2587)
    11-16 14:31:20.119: W/webcore(23528):      at android.webkit.WebView.sendOurVisibleRect(WebView.java:3410)
    11-16 14:31:20.119: W/webcore(23528):      at android.webkit.ZoomManager.setZoomScale(ZoomManager.java:958)
    11-16 14:31:20.119: W/webcore(23528):      at android.webkit.ZoomManager.access$2100(ZoomManager.java:57)
    11-16 14:31:20.119: W/webcore(23528):      at android.webkit.ZoomManager$PostScale.run(ZoomManager.java:1428)
    11-16 14:31:20.119: W/webcore(23528):      at android.os.Handler.handleCallback(Handler.java:605)
    11-16 14:31:20.119: W/webcore(23528):      at android.os.Handler.dispatchMessage(Handler.java:92)
    11-16 14:31:20.119: W/webcore(23528):      at android.os.Looper.loop(Looper.java:137)
    11-16 14:31:20.119: W/webcore(23528):      at android.app.ActivityThread.main(ActivityThread.java:4514)
    11-16 14:31:20.119: W/webcore(23528):      at java.lang.reflect.Method.invokeNative(Native Method)
    11-16 14:31:20.119: W/webcore(23528):      at java.lang.reflect.Method.invoke(Method.java:511)
    11-16 14:31:20.119: W/webcore(23528):      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
    11-16 14:31:20.119: W/webcore(23528):      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
    11-16 14:31:20.119: W/webcore(23528):      at dalvik.system.NativeStart.main(Native Method)
    11-16 14:31:20.190: D/FirewallPolicy(227): getURLFilterEnabled(true)
    11-16 14:31:20.190: D/FirewallPolicy(227): isUrlBlocked - Policy disabled

  • Opening pdf via air 2.6 on iOS

    Hi,
    Just wondering if anyone can help me work out how to view a PDF document within an Air 2.6 app running on iOS.
    Many thanks!
    Dave.

    Hi,
    By now the only way you can do it is using the stagewebview to load a pdf, it works ( tested ) but I dont know how to control way it is presented.

  • Air for Android - Embed a pdf in Air Mobile app

    Hi at all,
    i would like to embed a pdf directly in a View Component and use the Adobe Reader features like zoom, navigation page etc.
    Any suggest?
    Thanks.
    F.

    You can call native code from AS3 by writing an AIR Native Extension (ANE):
    http://www.adobe.com/devnet/air/native-extensions-for-air.html
    BTW: Flash already contains quite a few image processing filters and image compositioning algorithms. They may be suitable, depending on your needs.

  • Displaying PDF in Air Problem

    im trying to display a pdf file in my air application using a HTMLLoader and wrapping it in a UIComponet. i set an event handler for HTMLoader's complete  to make sure the file gets loaded. everything seems to be working fine untill i try to add the UIComponet to a container to show the pdf inwhich point i just get a black screen. anyone know how i could fix this?

    Hello,
    Can you share some code so we can see what's going on?  HTMLLoader should do the trick of displaying the PDF files in the UI.

  • AIR PDF with field

    Hi,   In my app, user has a pdf witch may use like a template. It's an administrative form that may be complete with mysql data.  My goal is to create this pdf and insert field, all must be done inside my air application.  When people wants to print this document, field must be replace by good value after request to database.  My problem, is: How to open pdf in air and store field name inside document, Second, how replace field by good values during print job.  Thanks for helping.

    The PDF that was placed into ID loses all interactivity and form fields. There is no way to do what you want.
    Bob

  • Displaying PDF content in Adobe Air 3.2

    Hi all,
    I'm trying to render a locally stored sample pdf using Air 3.2 on Win7 64bit.
    I'm not getting any error messages and I'm pretty sure the content is being loaded.. but the actual content of the pdf is not displayed when I add it to the stage.
    I just get a white screen in the app.
    I haven't explicitly scaled or rotated the content, just set the width and height of the html component as directed in the livedocs.
    Dan

    Solved.
    For some reason I couldn't access the HTMLLoader object outside of the function that initialised it, despite the fact that I was listening for EVENT_COMPLETE.
    Basically, to get round this bug, just put all the initialise and load code in the same function and you should be laughing.

  • Is there a library for dealing with .pdf files in AIR? Specifically, I want to fill in fields in a p

    Hello,
    I am trying to populate fields in a fillable .pdf from AIR. I have done some thinking on this, but all of my ideas seem a bit roundabout. Has anyone done anything similar? Any pointers would be much appreciated!
    Thanks,
    rw

    Here is an Apple Script that will do this for you.
    http://dougscripts.com/itunes/scripts/scripts01.php?page=1#setvideokindofselecte d
    Sorry that you had to do this by hand. I did the same thing before I found this script.

Maybe you are looking for

  • Few questions on Report programming

    Hi guys, I have few questions on report programming. 1. What is the purpose of the statement REPORT zxxx. Even if i gave a name other than my report name i don't find any difference in syntax check/Functionality. 2. What is the purpose of list headin

  • How to Download a file from web server using servlets

    how do we download a file from Java Web Server connecting to oracle database it should start as soon a i click a button in my html browser please reply as it is needed to complete my project to submited to the collage

  • Re: Output for Payment Receipt

    Hello Friends, I have  a requirement where in I would like to send an output for the customer's payment. Basically i would like to send payment receipt output through SAP. Can any one help me on this issue . Thanks Julie

  • Problem with adding text area in scroll pane

    hi , i have been facing this funny problem , but cant able to get solution. the problem is i am trying to add text area in scroll pane , but when i add textarea in scroll pane using scrollpane.add(textarea) that text area remain disable always. i tri

  • Transaction SMOEAC does not display Object type and Object Name options.

    Dear all, When I go to transaction SMOEAC system does not display fields Object type and Object Name option instead displays an empty frame allowing only to create new objects. System does not allow and display existing objects to edit. Most imp with