3
votes

I am making an AIR for iOS app that can download pdfs. I do not want to display the pdf in the app itself but want the default pdf-viewer (iBooks) to launch and show the pdf. How can this be done.

I am aware that navigateToURL can be used to open a file with the uri scheme of iBooks. But i dont know how to tell iBooks to look in the app-directory of my app. (Or is there some secret directory to place the file in from within the app - where iBooks can find it)

I have a hard time figuring out what the expected behavior should be. I can open iBooks from the app, but where should i place the file so that iBooks can get to it?

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

2

2 Answers

2
votes

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

0
votes

Try this library

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

I haven't used it personally. It this works you will be able to extract text / content and render back in flash / flex application.