PHPackages                             salva/pdfjs-bundle - 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. salva/pdfjs-bundle

AbandonedSymfony-bundle[PDF &amp; Document Generation](/categories/documents)

salva/pdfjs-bundle
==================

This bundle provides a simple integration of pdfjs from mozilla into Symfony2.

36.9k2JavaScript

Since Apr 25Pushed 13y ago1 watchersCompare

[ Source](https://github.com/nibsirahsieu/SalvaPdfJsBundle)[ Packagist](https://packagist.org/packages/salva/pdfjs-bundle)[ RSS](/packages/salva-pdfjs-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

SalvaPdfJsBundle
================

[](#salvapdfjsbundle)

[![Build Status](https://camo.githubusercontent.com/9aa940f8dfeec4da94e49a33bec4edbaee873595d6cdd6facd2971a1ef211162/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6e69627369726168736965752f53616c76615064664a7342756e646c652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/nibsirahsieu/SalvaPdfJsBundle)

This bundle provides a simple integration of the "[PDF.JS library](https://github.com/mozilla/pdf.js)" from mozilla into Symfony2.

Installation
============

[](#installation)

### 1) Download SalvaPdfJsBundle

[](#1-download-salvapdfjsbundle)

**Using the vendors script**

Add the following lines to the `deps` file at the root of your project file:

```
[SalvaPdfJsBundle]
    git=http://github.com/nibsirahsieu/SalvaPdfJsBundle.git
    target=bundles/Salva/PdfJsBundle

```

Next, update your vendors by running:

```
$ ./bin/vendors install
```

**Using composer**

Tell composer to download the bundle by running the command:

```
$ php composer.phar require salva/pdfjs-bundle:1.0.*@dev
```

### 2) Configure the autoloader (no needed for composer)

[](#2-configure-the-autoloader-no-needed-for-composer)

Add the following entry to your autoloader:

```
