I would love to sea a PDF support. I was asked several times by clients to add their brochures to the apps I create for them. In the past I converted the pages to images but it would be much easier if Corona would support PDF rendering.
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
PDF Support
Seconded. This would be a major help for me on the project I am currently working on.
In lieu of PDF, I have modified the Photo album sample from the code samples page so it supports multiple orientations, but it still doesn't zoom - which is something that I need.
@akhtar, The Multitouch sample app demonstrates pinch and zoom which can be used to zoom photos.
-Tom
Thanks for the tip. I'll see if I can't add that to what I have.
+1
Is there any way to view a PDF at this point ? I am working on a project now that requires viewing PDF documents.
Appreciate any help
You could try loading the PDF into a web view. I haven't tried it in Corona but Mobile Safari supports displaying PDF files directly so it should work.
It's working fine (I am working on a very similar project), but I can only show remote PDFs or download to the sandbox and then display them.
I need to find a way to always view the PDF, even offline -after it was downloaded. Is this possible??
Thank you spjnowak for the suggestion of using web view, it worked. I had tried web view before but for some reason it wouldn't work. It something to do with the parameters. Anyway I'm just glad it's working.
As for the question of working offline, if the PDF is in the sandbox, I would think it would load. With exception of testing offline, my app loads the PDF using web view just fine. I'll test my app offline and post my results today.
Well, it's working here too by now! I have the PDF-Files in system.DocumentsDirectory. At first start (if offline) there are some PDF to start with in the RecourceDirectory and they are copied to the sandbox (system.DocumentsDirectory).
In case the user is online (at first start) the files are downloaded to that Directory instead of copied from "above".
The documents stay in that sandbox, so it's ok.
My mistake was: Always connecting to the server and then downloading files no matter what. In case you are offline there's nothing to download, but still existing documents will be overwritten (probably with nil)!
Solution was to check fisrt if there's already a document in the DocumentsDirectory..
Glad you both found a solution!
Stefan
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
About Sound License: Is it ok for sale app to use corona sample resource such as sound effect?
Inmobi vs Inneractive
stopping a runtime
Matchimals for the iPad
Looking for a Programmer to create a Proffessional and a Very Unique Game
kinematic + applyAngularImpulse
Need a teacher to teach me everything about Corona
DraggingPhysics Finally Out!
"drawModeToggleHandler" and "pauseResumeGameHandler" button handlers