PHPackages                             smartysoft/yii2-smartysoft-pdfjs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. smartysoft/yii2-smartysoft-pdfjs

ActiveYii2-extension[PDF &amp; Document Generation](/categories/documents)

smartysoft/yii2-smartysoft-pdfjs
================================

Yii2 Extension pdf.js Portable Document Format (PDF) viewer

2.5.2073(5y ago)0569Apache-2.0JavaScript

Since Sep 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/smartycoder/yii2-smartysoft-pdfjs)[ Packagist](https://packagist.org/packages/smartysoft/yii2-smartysoft-pdfjs)[ RSS](/packages/smartysoft-yii2-smartysoft-pdfjs/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (1)Versions (7)Used By (0)

Yii2 PDFJS
==========

[](#yii2-pdfjs)

Yii2 PDFJS bundle of [PDF.js](https://mozilla.github.io/pdf.js/) plugin. PDF.js Portable Document Format (PDF) viewer.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer require --prefer-dist smartysoft/yii2-smartysoft-pdfjs ">=1.0"

```

or add

```
"smartysoft/yii2-smartysoft-pdfjs": ">=1.0"

```

to the require section of your `composer.json` file.

Module Setup
------------

[](#module-setup)

The extension has been created as a module to enable access preview `pdf` file. you must add the module to your configuration file.

```
//....

'modules'=>[
  'pdfjs' => [
       'class' => '\yii2assets\pdfjs\Module',
   ],
],

//...
```

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
