[WebODF] ViewerJS 0.5.5 released, bringing newer pdf.js and parameter options
Friedrich W. H. Kossebau
friedrich at kogmbh.com
Fri Feb 13 00:53:38 CET 2015
Dear WebODF-interested and enthusiasts,
following the release of WebODF 0.5.5, also ViewerJS, the WebODF-based
Open Source document viewer for webpages, is available in an updated version.
It bumps both webodf.js to the latest version 0.5.5 as well as pdf.js to the
latest stable v1.0.907.
ViewerJS now tries to identify the type of the document by a HEAD request to
the server. If that fails, it falls back to guessing the type from a possible
fileextension at the end of the url, but now also dropping a possible search
string. More, the type can be defined by a parameter, see below for more.
Some customization is now possible, by passing parameters in the search part
of the query. Supported are:
* "zoom": initial zoom ("auto", "page-actual", "page-width", float value)
* "title": title to display instead of filename guessed from the url
* "type": overrule type of the file, identified by extension
Example:
/ViewerJS/index.html?zoom=page-width&type=odp&title=Slides#some/slides/123
Also have black pages with some PDFs been fixed
(https://github.com/kogmbh/ViewerJS/issues/88).
ViewerJS continues to be the candidate for embedding ODF or PDF files directly
in webpages, without any external server dependencies, just done with HTML,
CSS and Javascript.
Please visit http://viewerjs.org/ to learn more about ViewerJS, play with the
examples at http://viewerjs.org/examples/, and give it a deployment in your
webpages. And then spread your knowledge among your peers :)
Or try the "bower" package, listed with "viewerjs" at the central bower
registry. We are interested to get feedback on it, please tell if it works for
you or what could be improved.
If you use another package/dependency manager, please tell us how we can
support it. There is currently a special repo set up for such managers which
contains the files of the ViewerJS build, so any needed metadata file could be
placed there:
https://github.com/kogmbh/ViewerJS_release
Cheers
Friedrich
PS: WordPress users will be interested in the ViewerJS WordPress plugin,
available on http://viewerjs.org as well.
--
Friedrich W. H. Kossebau // KO GmbH
http://kogmbh.com/legal/
More information about the WebODF
mailing list