The googledocsviewer plugin

The googledocsviewer plugin allows inserting an embedded Google Docs Viewer in the page. This can be used to display various files - like PDF or DOCX files - inline in the HTML page.

../_images/googledocsviewer-admin.png

The document is rendered by Google:

../_images/googledocsviewer-html.png

Installation

Add the following settings to settings.py:

INSTALLED_APPS += (
    'fluent_contents.plugins.googledocsviewer',
)

The plugin does not provide additional configuration options, nor does it have dependencies on other packages.

The Google Docs Viewer is rendered as <iframe> tag. The appearance of the <iframe> tag depends on the CSS style of the web site. Generally, at least a border should be defined.

Note

When using the Google Docs viewer on your site, Google assumes you agree with the Terms of Service, see: https://docs.google.com/viewer/TOS