IPhone Document Reader


From Dev.openbig.net

Jump to: navigation, search

Demo available here. Version 0.1 alpha (9th Jan 2008) is now available for download.

Contents

Features

The iPhone Document Reader is a script written in php to aid document viewing for document types that are natively supported in Safari (for example jpg, png, gif, txt, html, xls, doc, mp3 and etc..). It currently supports local documents (placed in the same directory as the script itself) but can be modified to extend to files on the Internet. The document reader addresses the problem that the directory listings and text file rendering by the lighthttpd / apache + Safari is not satisfactory for reading on a hand held device.

The iPhone Document Reader currently provides the following features:

  • A suitable for iPhone reading directory listing of the directory the script resides in, and for any directories below that level.
  • A plain text (.txt) file reader that supports word-wrapping (with the help of html <p> </p> tags).

Screenshots

IMG_0004.JPG


IMG_0005.JPG


IMG_0006.JPG


IMG_0007.JPG

Installation

Detailed installation procedure will be provided later.

  1. Install lighthttpd
  2. Install php
  3. Setup lighthttpd to use php as cgi
  4. Create the Document Reader directory
  5. Download Document.app
  6. Modify Document.app to point to the Document Reader directory
  7. Put the application into the Document Reader directory
  8. Unzip and untar with tar -xvzf command
  9. Reload Springboard on iPhone
  10. Click on the Document icon in Springboard to use

Planned Features

Credits