ViewerJS: Document Reader in JavaScript
JavaScript CSS HTML CMake
Latest commit 89b82b4 May 28, 2016 @vandenoever vandenoever Merge pull request #177 from pepa65/master
Use https git repo url instead of git: url.
Permalink
Failed to load latest commit information.
images Import ViewerJS source files from WebODF Apr 20, 2015
tools Compile everything ViewerJS into a single HTML file Apr 21, 2015
AGPL-3.0.txt Add full copy of AGPL3.0, add note about source of full AGPL text to … Feb 14, 2014
Apache-License-2.0.txt Import ViewerJS source files from WebODF Apr 20, 2015
CMakeLists.txt Update version to 0.5.9 Sep 3, 2015
HeaderCompiled.html Compile everything ViewerJS into a single HTML file Apr 21, 2015
HeaderCompiled.js Import ViewerJS source files from WebODF Apr 20, 2015
ODFViewerPlugin.css Import ViewerJS source files from WebODF Apr 20, 2015
ODFViewerPlugin.js Compile everything ViewerJS into a single HTML file Apr 21, 2015
PDFViewerPlugin.css Hide overflow of 'page' elements in the PDF plugin. Apr 1, 2014
PDFViewerPlugin.js Fix rendering of text layer with newer PDF.js Aug 5, 2015
PluginLoader.js Compile everything ViewerJS into a single HTML file Apr 21, 2015
README Add forgotten README from WebODF:programs/viewer Apr 21, 2015
README.md Correct git repo url Nov 23, 2015
example.local.css Import ViewerJS source files from WebODF Apr 20, 2015
index-template.html Compile everything ViewerJS into a single HTML file Apr 21, 2015
index.html Compile everything ViewerJS into a single HTML file Apr 21, 2015
pdfjsversion.js.in Expose PDFjs plugin information. Feb 4, 2014
viewer.css Compile everything ViewerJS into a single HTML file Apr 21, 2015
viewer.js Fix links to nlnet.nl to https:// Jun 8, 2015
viewerTouch.css Compile everything ViewerJS into a single HTML file Apr 21, 2015
viewerjs-plugin-README.txt use the new official name "ViewerJS" consistently everywhere May 14, 2014
viewerjs-plugin.php.in Support in WordPress plugin also all template and flat variants of od… Aug 15, 2014
viewerjsversion.js.in Import ViewerJS source files from WebODF Apr 20, 2015

README.md

ViewerJS

ViewerJS combines a number of excellent open source tools that are built on HTML and javascript. ViewerJS was funded by NLnet foundation and developed by KO GmbH.

The heavy lifting in ViewerJS is done by these awesome projects:

WebODF

WebODF is a JavaScript library created by KO GmbH. It was started by Jos van den Oever at KO and is now developed by a growing team including external collaborators. It makes it easy to add Open Document Format (ODF) support to your website and to your mobile or desktop applications. It uses HTML and CSS to display ODF documents.

PDF.js

PDF.js is a library created by Andreas Gal and others at Mozilla Labs. It is an HTML5 technology experiment that explores building a faithful and efficient Portable Document Format (PDF) renderer without native code assistance.

Examples and more

You can find additional information, some usage guides, and live examples at the project homepage.

Building

ViewerJS uses cmake. Just follow these steps:

git clone http://github.com/kogmbh/ViewerJS.git
mkdir build
cd build
cmake ../ViewerJS
make

You will find the following two products in the build directory if everything goes well:

  • viewerjs-{x.y.z}.zip
  • viewerjs-wordpress-{x.y.z}.zip

... where {x.y.z} denotes the version.

License

ViewerJS is a Free Software project. All code is available under the AGPL.

If you are interested in using ViewerJS in your commercial product (and do not want to disclose your sources / obey AGPL), contact KO GmbH for a commercial license.