user1582128
user1582128

Reputation: 1

Flex Mobile Project: Open PDF in Native Reader on iOS

I'm developing a Flex Mobile Project for iPad (iOS) and I need to open a PDF document in the native PDF reader.

I think I need integrate with a Native Extension.

Someone did something like that?

Thanks for your suggestions.

Upvotes: 0

Views: 888

Answers (1)

Superlandero
Superlandero

Reputation: 692

Have you tried this?

var myFileName:String = 'myFile.pdf';
var localFile:File = File.documentsDirectory.resolvePath('myAppFolder/'+myFileName);
localFile.openWithDefaultApplication()

Maybe this can help you!

Upvotes: 1

Related Questions