History: PluginWebDocViewer
Source of version: 20
Copy to clipboard
! Plugin Web Doc Viewer ''Introduced in ((Tiki12))'' Use this ((wiki plugin)) to embed and display many types of documents in a page.{REMARKSBOX(type="note" title="Important" highlight="n" close="n")}The server hosting your Tiki web instance must be accessible from the Internet in order for this plugin to work. If Google's servers cannot load the document, the plugin cannot preview its contents. For similar functionality, fully on your infrastructure, please see: ((PluginPreview)).{REMARKSBOX} {maketoc} !!Parameters {pluginmanager plugin="webdocviewer"} 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 Note : For a full list of supported file types please visit [https://support.google.com/drive/answer/2423485?p=docs_viewer&rd=1] !! Overview {kaltura id="1_8rqg9q99"} !! Example To add a preview of a document in a wiki page, forum post, blog post, use the WEBDOCVIEWER plugin like this: {CODE(colors="tiki")} {webdocviewer url="http://www.ntia.doc.gov/legacy/reports/2010/OSTWG_Final_Report_060410.pdf" width="425" height="350"} {CODE} -OR- this if the file is in the File Gallery... {CODE(colors="tiki")} {webdocviewer fileId="1" width="425" height="350"} {CODE} another example {CODE(colors="tiki")} {webdocviewer url="http://tiki.org/dl178" width="750" height="780"} {CODE} Produces... {webdocviewer url="http://tiki.org/dl178" width="750" height="780"} NOTE: If you "popout" top left corner of the pdf being displayed, you can get the download, print, save, etc. links. !!Alternatives ((Wiki Plugin)) ((PluginMediaPlayer)) is similar. *It uses ((JQuery)). **If you run into problems with one, it's nice to have a second option to try.