Downloading and Displaying PDF Files with Zoom Capability

Can anyone point me towards sample code to download and display a PDF file, preferably with zoom capability? Thanks. [import]uid: 36444 topic_id: 7077 reply_id: 307077[/import]

feature not available in corona…

c. [import]uid: 24 topic_id: 7077 reply_id: 24852[/import]

Is there any chance it will be in the future?

Thx [import]uid: 16527 topic_id: 7077 reply_id: 24858[/import]

Thanks, Carlos. When you say that the feature isn’t available, are you referring to both aspects of the feature … downloading a PDF and viewing a PDF? If I save the PDF to the directory containing the main.lua file, can I then display the PDF? [import]uid: 36444 topic_id: 7077 reply_id: 24912[/import]

There could be a work around. download the file using network request and then do a webview to view the pdf file. I haven’t tried it but could work.

C. [import]uid: 24 topic_id: 7077 reply_id: 24965[/import]

This little demo worked fine for me, using a native web popup to view a local PDF file - viewing a remote file should work the same.

[lua]alwaysLoadUrlRequest = function(e) return true end

display.setStatusBar( display.HiddenStatusBar )

native.showWebPopup( 0, 0, 320, 480, “MyFile.pdf”, {baseUrl=system.ResourceDirectory, urlRequest=alwaysLoadUrlRequest} )[/lua] [import]uid: 10976 topic_id: 7077 reply_id: 27432[/import]

This does not work on the simulator/emulator correct? It is not working for me. [import]uid: 15043 topic_id: 7077 reply_id: 30096[/import]

Correct. [import]uid: 10976 topic_id: 7077 reply_id: 30098[/import]

Now that we have found a way to display the pdf. Is there any way that we can control which page of the pdf is displayed. [import]uid: 22878 topic_id: 7077 reply_id: 31703[/import]

I’m also wondering how this can be done. I’m hoping to have an app that will load a .pdf, and then, ultimately, have the capability to search within the .pdf for text strings. [import]uid: 57009 topic_id: 7077 reply_id: 51156[/import]