WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Simple Google Docs Viewer

Enables you to easily embed documents with Google Docs Viewer - that are supported by Google Docs (PDF/DOC/DOCX/PPTX/etc).

Enables you to easily embed documents with Google Docs Viewer - that are supported by Google Docs (PDF/DOC/DOCX/PPTX/etc) with a simple shortcode. [gviewer]

A full list of attributes:

  • file -- Required. The URL of the file you wish to show
  • width -- Optional. The desired width of the viewer in pixels. If nothing set, the value of the theme's $content_width will be used. If no value set, the height of 600 pixels will be used.
  • height -- Optional. The desired height of the viewer in pixels. If nothing set, the height will 1.2 times the width. So for instance, if the width was 100px, the height will be 120px.
  • language -- The language of the document. If the document is written in a RTL language (Hebrew, Arabic, etc) then specifying the language will also apply right-to-left settings.

A yet another way to embed a Google Document is possible by using the template tag provided by the plugin. Here's an example.

<?php

echo simple_gviewer_embed( 'http://.../file.pdf', $args );

The second argument, $args, is an associative array. Keys can be found in the list above.

Short Demonstration

Requires: 3.0 or higher
Compatible up to: 3.5.2
Last Updated: 2013-4-1
Downloads: 8,519

Ratings

3 stars
3.6 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
0,1,0 50,2,1
0,1,0