Plugin Directory

Google Doc Embedder

Lets you embed MS Office, PDF, and many other file types in a web page using the Google Docs Viewer (no Flash or PDF browser plug-ins required).

Download Version 2.2.3

What file types can be embedded?

This plug-in currently can embed the following:

  • Adobe PDF
  • Microsoft Word (DOC/DOCX)
  • Microsoft PowerPoint (PPT/PPTX)
  • Microsoft Excel (XLS/XLSX)
  • TIFF Images
  • Apple Pages (PAGES)
  • Adobe Illustrator (AI)
  • Adobe Photoshop (PSD)
  • Autodesk AutoCad (DXF)
  • Scalable Vector Graphics (SVG)
  • PostScript (EPS/PS)
  • TrueType (TTF)
  • XML Paper Specification (XPS)
  • Archive Files (ZIP/RAR)

The file to embed must first be publicly available somewhere on the internet. You can upload it to your WordPress site using the standard techniques, or link to a file on another site.

How do I embed a file in my page or post?

Use the Google Doc Embedder button in the Visual editor to insert the [gview] shortcode as described below. Alternately, you can paste the URL into the HTML editor, select it, and click the "GDE" quicktag button.

To manually insert the [gview] shortcode into your page or post to embed the file, use the syntax below (use of the HTML tab in the editor recommended):

[gview file="http://url.to/file.pdf"]

Note: the file= attribute (pointing to the full URL of the file) is required.

Optional attributes:

  • save= : Set to 0 if you wish to suppress the direct download link to the file under the embedded viewer (1 for on, by default)
  • width= : To override the default width of the viewer, enter a new width value - e.g., "400" (px) or "80%"
  • height= : To override the default height of the viewer, enter a new height value - e.g., "400" (px) or "80%"
  • cache= : Set to 0 to bypass the viewer's internal caching (useful only for frequently updated files)

For a list of all available attributes, see Usage.

Will it embed files that are password-protected or stored in protected folders/sites?

Most likely, no. If your file requires a login to view - such as being saved in a password-protected directory, or behind a firewall (on your intranet, etc.), the viewer will probably not be able to access the file. This is what is meant above, that the document should be "publicly available." Please save the file in a publicly accessible location for best results.

Nothing is showing up! What do I do?

View the source on the web page where you've embedded the viewer. In order to degrade gracefully in case an error occurs, error messages will be inserted as HTML comments in these pages at the spot the viewer is called.

Does it work with files saved in Google Docs?

This plug-in utilizes the viewer from Google Docs in a standalone fashion. There is no direct integration with Google Docs and even those documents stored there and shared publicly do not embed reliably with their viewer (ironically), so at this time that use is not supported by the plug-in. Please store your original documents somewhere on your web site in their native supported formats.

I wish the plug-in had feature XYZ...

That's not a question ;) but if you have any particular ideas on further development of this plug-in, please post on the forum or privately using the support form and I'll see what I can do.

Requires: 2.8 or higher
Compatible up to: 3.3.1
Last Updated: 2011-12-16 Downloads: 107,310

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(42 ratings)

Compatibility

+
=
Not enough data

3 people say it works.
2 people say it's broken.

Log in to vote.

100,1,1
100,1,1
100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,2,2 50,2,1
100,2,2 100,2,2 100,1,1 100,1,1
50,2,1 100,1,1 100,1,1 100,1,1
100,5,5 100,1,1
100,4,4 67,3,2 100,5,5 100,1,1 100,1,1
100,3,3 100,3,3 100,3,3 100,1,1
69,13,9 100,1,1
100,1,1 100,1,1
100,4,4 100,1,1
100,3,3
100,1,1
67,3,2 63,8,5
100,2,2
100,3,3
100,3,3 50,2,1
100,1,1 100,1,1
67,3,2 100,3,3 100,1,1
100,1,1 0,1,0 78,9,7 100,1,1
100,2,2 25,4,1 50,2,1
100,1,1 60,5,3