Title: Simple Google Docs Viewer
Author: Maor Chasen
Published: <strong>2012 年 12 月 20 日</strong>
Last modified: 2017 年 3 月 22 日

---

搜索插件

![](https://ps.w.org/simple-google-docs-viewer/assets/banner-772x250.jpg?rev=1582610)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/simple-google-docs-viewer_ffffff.svg)

# Simple Google Docs Viewer

 作者：[Maor Chasen](https://profiles.wordpress.org/maor/)

[下载](https://downloads.wordpress.org/plugin/simple-google-docs-viewer.zip)

 * [详情](https://cn.wordpress.org/plugins/simple-google-docs-viewer/#description)
 * [评价](https://cn.wordpress.org/plugins/simple-google-docs-viewer/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/simple-google-docs-viewer/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/simple-google-docs-viewer/#developers)

 [支持](https://wordpress.org/support/plugin/simple-google-docs-viewer/)

## 描述

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:

 * `file` — **Required**. 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

## 屏幕截图

 * [[
 * How an embedded document looks in the front-end.
 * [[
 * A sample use of the “gviewer” shortcode.

## 安装

Add via the plugin installer, or download the ZIP file and upload from the “Upload”
tab.

## 评价

![](https://secure.gravatar.com/avatar/3af6aaf1990e955286126a79f622586359fc37e3adbee6e113ceb393405e7dc8?
s=60&d=retro&r=g)

### 󠀁[congrats for this crap](https://wordpress.org/support/topic/congrats-for-this-crap-should-be-deleted/)󠁿

 [imfreednb](https://profiles.wordpress.org/imfreednb/) 2018 年 9 月 11 日 1 回复

not working

 [ 阅读所有8条评价 ](https://wordpress.org/support/plugin/simple-google-docs-viewer/reviews/)

## 贡献者及开发者

「Simple Google Docs Viewer」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Maor Chasen ](https://profiles.wordpress.org/maor/)
 *   [ Miriam Schwab ](https://profiles.wordpress.org/illuminea/)

[帮助将「Simple Google Docs Viewer」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-google-docs-viewer)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/simple-google-docs-viewer/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/simple-google-docs-viewer/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/simple-google-docs-viewer/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/simple-google-docs-viewer/)。

## 更新日志

#### 1.2

 * Fix width shortcode attribute

#### 1.1

 * Added support for https
 * iframes are now responsive out of the box

#### 1.0

 * Initial release

## 额外信息

 *  版本 **1.2**
 *  最后更新：**9 年前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **4.7.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-google-docs-viewer/)
 * 标签
 * [documents](https://cn.wordpress.org/plugins/tags/documents/)[embed pdf](https://cn.wordpress.org/plugins/tags/embed-pdf/)
   [google docs](https://cn.wordpress.org/plugins/tags/google-docs/)[pdf viewer](https://cn.wordpress.org/plugins/tags/pdf-viewer/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-google-docs-viewer/advanced/)

## 评级

 3.1 星（最高 5 星）。

 *  [  3 条 5 星评价     ](https://wordpress.org/support/plugin/simple-google-docs-viewer/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/simple-google-docs-viewer/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/simple-google-docs-viewer/reviews/?filter=3)
 *  [  2 条 2 星评价     ](https://wordpress.org/support/plugin/simple-google-docs-viewer/reviews/?filter=2)
 *  [  2 条 1 星评价     ](https://wordpress.org/support/plugin/simple-google-docs-viewer/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/simple-google-docs-viewer/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/simple-google-docs-viewer/reviews/)

## 贡献者

 *   [ Maor Chasen ](https://profiles.wordpress.org/maor/)
 *   [ Miriam Schwab ](https://profiles.wordpress.org/illuminea/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/simple-google-docs-viewer/)