Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 1.59 KB

File metadata and controls

40 lines (34 loc) · 1.59 KB

CONTENTS OF THIS FILE

  • Introduction
  • Requirements
  • Installation
  • Configuration

INTRODUCTION

This module provide field formatter to display file or image using ViewerJS library. ViewerJS must be the easiest way to use presentations, spreadsheets, PDF's and other documents on your website or blog without any external dependencies. It can work offline, doesn't depend on any third party services or might be (perceived as) invasive to the privacy of your users. Supported files : pdf, odt, odp, ods, fodt, jpg, jpeg, png, gif

REQUIREMENTS

This module requires the following modules and libraries:

INSTALLATION VIA DRUSH

A Drush command is provided in the latest versions for easy installation of the ViewerJS plugin. drush viewerjs-plugin The command will download the plugin and unpack it in "sites/all/libraries". It is possible to add another path as an option to the command, but not recommended unless you know what you are doing.

INSTALLATION

CONFIGURATION

  • Go to your Structure > Content Types > [your-content-type] > Manage display;
  • Create or use existing image or file field;
  • Choose ViewerJs Default format and configure options.