Pdf Integration

I will like to know if how I can read pdf files within my App.
Has any one attempted this before ?

Can any one please help ?

Hello @sirpros,

This is one option that I’ve recommended to other developers. I haven’t used it personally, but several people vouch for it.

https://github.com/boostup/Corona-SDK-Simple-PDF-Reader

Hope this helps,

Brent Sorrentino

Thanks alot. it says it works fine in iOS and Xcode Simulators. But I wonder if any one has tried it on Android ?

On Android, your only option is to display the PDF file outside of your app via the device’s default PDF reader.  This will suspend your app.  However, pressing the Back key will return the user back to your app, which works nice and is really the Android way of doing things.

In Corona, your code would look something like this…

system.openURL(system.pathForFile(“my.pdf”, system.ResourceDirectory))

Hello @sirpros,

This is one option that I’ve recommended to other developers. I haven’t used it personally, but several people vouch for it.

https://github.com/boostup/Corona-SDK-Simple-PDF-Reader

Hope this helps,

Brent Sorrentino

Thanks alot. it says it works fine in iOS and Xcode Simulators. But I wonder if any one has tried it on Android ?

On Android, your only option is to display the PDF file outside of your app via the device’s default PDF reader.  This will suspend your app.  However, pressing the Back key will return the user back to your app, which works nice and is really the Android way of doing things.

In Corona, your code would look something like this…

system.openURL(system.pathForFile(“my.pdf”, system.ResourceDirectory))