The Document Viewer Plugin allows you to use presentations, spreadsheets, PDFs and other documents in Foswiki without any external dependencies. No tricks, no conversions, no unexpected downtime from external services, and no plugins required - it happens to work just fine in all major browsers today.
Document Viewer Plugin uses viewerjs, which makes use of pdf.js and webodf to perform the rendering.Currently, there aren't any preferences to be configured.
%DOCUMENTVIEWER{"filename.pdf" ... params ...}%
Parameter | Description | Default |
---|---|---|
"<filename>" |
the name of an attached file to be displayed | |
topic |
topic where the file is attached to | current topic |
format |
one of the ids 'portrait' (width=742, height=1024), 'landscape' (width=1024, height=742) or 'screen' (width=1024, height=768) | |
width |
reader width | 724 |
height |
reader height | 1024 |
cd /path/to/foswiki perl tools/extension_installer <NameOfExtension> installIf you have any problems, or if the extension isn't available in
configure
, then you can still install manually from the command-line. See https://foswiki.org/Support/ManuallyInstallingExtensions for more help.
28 Apr 2022 | docu fixes |
02 Sep 2016 | make it backwards compatible |
27 Sep 2015 | fixed masking warnings |
16 Aug 2015 | Initial version |