I don't see why not as long as it's either a resource in your app, a url to the pdf or something you streamed from the web and downloaded to your apps directory... just point the UIWebView to the file.. should load up just fine.
john
__________________
---------------------------------------------------------------------- I love being a dad, flying airplanes and writing code.
----------------------------------------------------------------------
Follow me on Twitter: @BostonMerlin
Feed your brain on Twitter: @iPhoneDev101
----------------------------------------------------------------------
iPhone Apps:
I think that UIWebView is very trimmed version of the Safari. It doesn't even recognize or can't handle new window links... or javascript open window script
I just tested this out, and the zooming is extremely slow - it jams for 10 seconds everytime you zoom until the text and images are in focus. Very frustrating. Is there any better way to display a PDF?
I used the code from RickMaddy, put it in the viewDidLoad function, and linked it up to an -(IBAction).
When the 4 page 700KB PDF opens (encoded by Adobe Acrobat 8.1 Paper Capture Plug-in), or any other PDF I have in my bundle, it opens with blank pages and a black column on the right.
Is this an encoding problem or have I done something wrong?
I have this same problem. I have a PDF file I want to load, I have tried in the WebView but I could never get it to work; but as you guys stated it loads very slow. I have also tried to save the PDF as a PNG and display it that way, no go.
I can load it just from the website the PDF is located, but I want it to be available for users offline.
Has anyone found a successful solution to this problem? I'd greatly appreciate it!!