PDF Support

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.

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

views:1956 update:2011/9/18 14:43:09
corona forums © 2003-2011