views:

249

answers:

3

What I'd like to be able to do is download any web page, and be able to view it offline.

It seems like html WebKit views cannot be converted to PDFs (on the Mac, you could 'print' a PDF, but that isn't possible on iPhone?).

So, the only way is to save the actual resources - save the html, the step thru each image, css, js file and save it locally. Then maybe alter the urls within the code so they point to the right place...etc ...etc...

Is there a standard way to do this?

Or, is there an open source project (in any programming lang) which does this kind of thing?

A: 

Oops.. didnt relize you meant on the iphone... sorry


Id use wget myself.

prodigitalson
+1  A: 

There's an excellent webkit html to pdf converter appropriately called wkhtmltopdf. Given the reources available on the iphone and its toolkits, I think it'd be easy to compile a version for the i-Phone ('think' being the operative word). We've managed to use the tool in a Windows, Linux and Solaris environment with absolutely no bugs. Here's the link:

http://code.google.com/p/wkhtmltopdf/

btelles
Unfortunately, it requires the Qt framework, which doesn't work on iPhone. There is also http://plessl.github.com/wkpdf ... but this requires Ruby I think.
cannyboy
Gotchya...it was worth a try, I guess :-)
btelles