Use this little piece of code to display PDF file in your Corona Apps!
I'm running Corona Version 2012.726 (2012.12.8).
---------------------------------------------
TESTED ON
---------------------------------------------
-Xcode iOS simulator
-iPhone 4 and iPad 2 running iOS 5.0.1
---------------------------------------------
LIMITATION TO DISPLAYING PDF FILES USING THIS METHOD
---------------------------------------------
This code is nothing more than a hack but does the job in my case so far. However, if anyone can think of a better way to do this, please let this code grow with your knowledge!
1) Make sure that the pdf file name does not contain any blanks, ie : change a file called "Touchscreens activity zones.pdf" to "Touchscreens_activity_zones.pdf"
2) Make sure that the pdf file is located in the app's resource directory and not in a subfolder
3) The pdf viewer will look strange when running in the Corona Simulator but runs fine on the Xcode iOS simulator and on iOS devices
4) The native webview must not cover the entire screen surface
5) You must know in the advance the appropriate lenght, in pixels, of your pdf file
Please refer to the notes regarding the parameters of the 'framework:displayPdfFile' function
Thank you sharing! When I get the time (soon I think) am going to test it out!
Cheers,
Rodrigo.