AIR crashes upon PDF display on MacOSX
Working with pdf documents is really nice now that it’s part of the workflow of a majority of companies. But the Adobe AIR team still has a lot of work ahead of them to let flash handle pdf. Now, the only possibility we have to communicate with a pdf within an air application requires four platforms/languages : as3->html->javascript->pdf. No wonder there are bugs coming one after the other.
Toxic snow contaminates the AIR
Or is it the other way around ?
We recently put to use the feature of dynamic pdf loading in AIR and we met a little problem. If you try to open a pdf document within the HTMLLoader on a MacOSX Snow Leopard, your application miserably crashes. I’m surprised I didn’t find much information but a few forum threads about this.
You can read about it on google groups but you won’t find any clue to a solution whatsoever. Doing what Hitomi Kudo from the AIR team advises doesn’t change anything.
The problem either comes from Adobe air + pdf or from Snow Leopard. There were many changes under the hood of Snow Leopard. The after effects were quite similar to the release of Vista. A lot of things didn’t work and required new drivers and blabla. So I wouldn’t be surprised Adobe didn’t see this one coming. — Just like Apple’s sly attempts to avoid the Flash Player on the iPhone — (subliminal message).
Still we’re stuck with this problem and there is no way to display a pdf in an air application under snow leopard.
We also tried an advice on this post on the adobe forum without success. It basically says you should add “file://” when you call a file on MacOSX.
Alpha…ville
It is only natural that you would enable the alpha on your application so that your rounded borders or whatever look nice. Well forget that if you intend to use pdf documents ! Enabling the alpha on the application level is cause to so many issues that it reminds me of the “transparent wmode” beast to avoid at all cost on websites. This isn’t the web though. Perhaps if we shout all together at once “we want alpha”, some Adobe developers will hear us wherever they lurk.
WE-WANT-ALPHA ! *pretty please !*
Überlays
To complete the picture, we found yet another annoying bug. In the same configuration, an air application with a pdf within an htmlloader, the htmlloader is masking everything that should be on top of it. So if you have a combobox just over your htmlloader, try and click on the combobox and the panel which expends down will be masked, as if it were in a lesser child index than the htmlloader instance. What a drag.
Integrating the PDF reader into AIR does seem to be a huge task for the amount of bugs we get with each update…
How about AIR 1.5.4 ? or AIR 2.0 ? Let us be patient.
About this entry
You’re currently reading “AIR crashes upon PDF display on MacOSX,” an entry on Théâtre magique
- Published:
- 01.16.10 / 1
- Category:
- Flash/Flex

No comments
Jump to comment form | comments rss [?] | trackback uri [?]