Viewerjs: Install
Viewerjs: Install
https://github.com/kogmbh/ViewerJS/commits/master
For PDF viewing, we will start using code directly from Mozilla's PDF.js, and installable via Packages.
For ODF viewing, we will start using code directly from the Wodo text editor (WebODF), and installable
via Packages.
ViewerJS
As of Tiki 15.0 (also backported to 14.2 and 12.5 ) support has been added for ViewerJS.
ViewerJS can already natively show both PDF files and many types of Office files stored in OpenDocument
Format, the open standard for office documents. ODF is available by default in almost any modern office
applications such as Microsoft Office, LibreOffice, Apache OpenOffice and Calligra Suite. Because it is built
on modern web technologies, ViewerJS understands embedded fonts, so your documents look pretty
everywhere.
Install
Assuming:
curl -o /tmp/viewejs.zip \
https://viewerjs.org/releases/ViewerJS-latest.zip
unzip /tmp/viewejs.zip \
-d /var/www/html/files
mv /var/www/html/files/viewerjs-0.5.8 \
/var/www/html/files/viewerjs
4. Remove uneeded zip file
rm /tmp/viewejs.zip
Setting up Tiki
Remembering, for this example we will use PluginMediaPlayer.
Activate ViewerJS
1. Load credentials
eval $(sed -n '/^\$/s/^\$//p' /var/www/html/db/local.php)
Usage
You can use ViewerJS through the File Gallery, or through PluginMediaplayer or through PluginIframe, but
remembering, for this example we will use PluginMediaPlayer.
Related
Related:
PDF
File Gallery
PluginMediaPlayer
PluginIframe