Simple Google Docs Viewer

Simple Google Docs Viewer Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 19,805 downloads
Simple Google Docs Viewer Icon

Try plugin: Simple Google Docs Viewer

We'll create fresh WordPress site with Simple Google Docs Viewer installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Simple Google Docs Viewer

Easily embed documents like PDFs, Word documents, and Powerpoint in your site using Google Docs Viewer.

3


1


0


2


2

updated: 7 years ago
since: 11 years ago
author: illuminea

Description

Easily embed documents supported by Google Docs (PDF/DOC/DOCX/PPTX/etc)with a simple shortcode [gviewer]

Ex. [gviewer file=”https://example.com/thisismyfile.pdf”]

A full list of attributes:

  • fileRequired. The URL of the file you wish to show
  • width — Optional. The desired width of the viewer in pixels. If no width is set, the value of the theme’s $content_width will be used. If no value is set, the width will default to 600 px.
  • height — Optional. The desired height of the viewer in pixels. If height is set, the height will 1.2 times the width. For example, if the width is 100 px, the height will be 120 px.
  • language — The language of the document. If the document is written in a right-to-left (RTL) language (like Hebrew and Arabic), specifying the language will apply RTL settings.

Another way to embed a Google Document is by using the template tag provided by the plugin in the source code. Here’s an example:

<?php

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

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

Short Demonstration