Loading...
 
Skip to main content
View a document in a page

Plugin Web Doc Viewer

Introduced in Tiki12

Use this wiki plugin to embed and display many types of documents in a page.

Parameters

Plugin PluginTikiDocFromCode failed : Either the module, plugin, preferences, tracker field or prefsexport parameter must be set, but not two or more.
Supported file types:

  • Image files (.JPEG, .PNG, .GIF, .TIFF, .BMP)
  • Raw Image formats
  • Video files (WebM, .MPEG4, .3GPP, .MOV, .AVI, .MPEGPS, .WMV, .FLV, .ogg)
  • Microsoft Word (.DOC and .DOCX)
  • Microsoft Excel (.XLS and .XLSX)
  • Microsoft PowerPoint (.PPT and .PPTX)
  • Adobe Portable Document Format (.PDF)
  • Tagged Image File Format (.TIFF)
  • Scalable Vector Graphics (.SVG)
  • PostScript (.EPS, .PS)
  • TrueType (.TTF)
  • XML Paper Specification (.XPS)
  • Google Docs
  • Google Sheets
  • Google Slides
  • Google Forms
  • Google Drawings
  • Google Drive (.PDF, "Image files", "Video files")


Note : For a full list of supported file types please visit https://support.google.com/drive/answer/2423485?p=docs_viewer&rd=1

Overview

Examples

To add a preview of a document in a wiki page, forum post, blog post, use the WEBDOCVIEWER plugin like this:

File Gallery

Copy to clipboard
{webdocviewer url="https://tiki.org/dl178" width="750" height="780"}

Produces...

Copy to clipboard
{webdocviewer fileId="1" width="425" height="350"}

Display a PDF from another site

Copy to clipboard
{webdocviewer url="http://www.ntia.doc.gov/legacy/reports/2010/OSTWG_Final_Report_060410.pdf" width="425" height="350"}


NOTE: If you "popout" top left corner of the pdf being displayed, you can get the download, print, save, etc. links.

Note: To display a PDF from a Google drive use the PluginIframe.

Alternatives

Wiki Plugin PluginMediaPlayer is similar or PluginGoogleDoc.

  • It uses JQuery.
    • If you run into problems with one, it's nice to have a second option to try.