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).
This plug-in currently can embed the following:
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.
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.
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.
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.
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.
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




