How to open a PDF document on iPad from an AIR for iOS application

I am making an AIR for iOS application that can download PDF files. I don't want to display the pdf in the application itself, but I want the default PDF viewer (iBooks) to launch and display the pdf. How this can be done.

I am aware that navigateToURL can be used to open a file using the iBooks uri schema. But I don't know how to tell iBooks to look in my app's app directory. (Or is there some kind of secret directory to put the file inside the app where iBooks can find it)

I'm having a hard time determining what should be the expected behavior. I can open iBooks from within the app, but where should I put the file so the iBooks can get to it?

Any pointers or help would be greatly appreciated as this is a somewhat indicative stopper.

+3


source to share


2 answers


If a simple navigateToURL won't work as expected, then I would suggest you look at AIR Native Extensions (ANE) and UIDocumentInteractionController (+ blog post ).



+2


source


Try this library

http://code.google.com/p/pavo/



I have not used it personally. This allows you to fetch text / content and output back to the flash / flex application.

0


source







All Articles