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.
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_widthwill 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.
Requires: 3.0 or higher
Compatible up to: 3.5.2
Last Updated: 2013-4-1
Active Installs: 2,000+
0 of 1 support threads in the last two months have been resolved.
Got something to say? Need help?