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. [import]uid: 4589 topic_id: 1661 reply_id: 301661[/import]

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. [import]uid: 846 topic_id: 1661 reply_id: 5158[/import]

@akhtar, The Multitouch sample app demonstrates pinch and zoom which can be used to zoom photos.

-Tom [import]uid: 7559 topic_id: 1661 reply_id: 5183[/import]

Thanks for the tip. I’ll see if I can’t add that to what I have. [import]uid: 846 topic_id: 1661 reply_id: 5186[/import]

+1 [import]uid: 2912 topic_id: 1661 reply_id: 20983[/import]

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 [import]uid: 11150 topic_id: 1661 reply_id: 27131[/import]

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. [import]uid: 2646 topic_id: 1661 reply_id: 27180[/import]

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?? [import]uid: 45296 topic_id: 1661 reply_id: 28625[/import]

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. [import]uid: 11150 topic_id: 1661 reply_id: 28746[/import]

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…
[import]uid: 45296 topic_id: 1661 reply_id: 28753[/import]

Glad you both found a solution!

Stefan [import]uid: 2646 topic_id: 1661 reply_id: 28766[/import]