PHPackages                             dzhemile-dzh/yii2-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. dzhemile-dzh/yii2-pdfjs

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

dzhemile-dzh/yii2-pdfjs
=======================

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

061[1 PRs](https://github.com/Dzhemile-dzh/yii2-pdfjs/pulls)JavaScript

Since Mar 17Pushed 2y agoCompare

[ Source](https://github.com/Dzhemile-dzh/yii2-pdfjs)[ Packagist](https://packagist.org/packages/dzhemile-dzh/yii2-pdfjs)[ RSS](/packages/dzhemile-dzh-yii2-pdfjs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#yii2-pdfjs)

[![Latest Stable Version](https://camo.githubusercontent.com/6aa604b86d562266da9829be805d7da173ec815df9f8c490733e26326fccea10/68747470733a2f2f706f7365722e707567782e6f72672f796969326173736574732f796969322d7064666a732f762f737461626c65)](https://packagist.org/packages/yii2assets/yii2-pdfjs) [![Total Downloads](https://camo.githubusercontent.com/5ba2d178ea9704aaf50ac03789f0d22980a44eda0affeebedbfc368e3dacbafc/68747470733a2f2f706f7365722e707567782e6f72672f796969326173736574732f796969322d7064666a732f646f776e6c6f616473)](https://packagist.org/packages/yii2assets/yii2-pdfjs) [![Latest Unstable Version](https://camo.githubusercontent.com/88cc5e74bace01e20df4381ca3c1ebb15dd9027e0fa90f79bb7003feca9aadbc/68747470733a2f2f706f7365722e707567782e6f72672f796969326173736574732f796969322d7064666a732f762f756e737461626c65)](https://packagist.org/packages/yii2assets/yii2-pdfjs) [![License](https://camo.githubusercontent.com/76ab4f2e664ff47c6c4f5fa2ae381eafdb1923e5037b75b61832302dc60f7110/68747470733a2f2f706f7365722e707567782e6f72672f796969326173736574732f796969322d7064666a732f6c6963656e7365)](https://packagist.org/packages/yii2assets/yii2-pdfjs) [![composer.lock](https://camo.githubusercontent.com/2a84fe54727f8fdf48f19579aed1c10c0eb0cd8f07253bf116739d185007be4b/68747470733a2f2f706f7365722e707567782e6f72672f796969326173736574732f796969322d7064666a732f636f6d706f7365726c6f636b)](https://packagist.org/packages/yii2assets/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 dzhemile/yii2-pdfjs ">=1.0"

```

or add

```
"dzhemile/yii2-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' => '\dzhemile\pdfjs\Module',
   ],
],

//...
```

Usage
-----

[](#usage)

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

```
