Google Docs Viewer, Mobile Edition

Google has just released a new version of its Doc Viewer, which enables iPhone users (and developers) to display various file formats right within the browser windows.

The viewer supports Microsoft’s DOC and DOCX formats, as well as DPS, TIFF and PPT. The viewer can be used online at http://docs.google.com/viewer.

However, Google also offers an embedded version. The viewer URLs uses the address path http://docs.google.com/viewer and supports two parameters: url points to the url of the document and embedded enables the embedded mode interface.

A direct link to a PDF file would look like this:

<a href=”http://docs.google.com/viewer?url=http%3A%2F%2Fwww.test.com%2F123.pdf”>Document Test</a>

The embedded version:

<iframe src=”http://docs.google.com/viewer?url=http%3A%2F%2Fwww.test.com%2F123.pdf&embedded=true” width=”600″ height=”780″ style=”border: none;”></iframe>

Leave a Reply

Your email address will not be published. Required fields are marked *