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

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

steamulo/pdfjs-viewer-bundle
============================

This bundle provides an integration of pdf.js from mozilla with Symfony 4 framework and customizable parameters on server side.

v4.0.0(3y ago)05.6k↓50%2MITJavaScriptPHP ^8.0

Since Mar 1Pushed 3y agoCompare

[ Source](https://github.com/STEAMULO/JjalvarezlPDFjsViewerBundle)[ Packagist](https://packagist.org/packages/steamulo/pdfjs-viewer-bundle)[ RSS](/packages/steamulo-pdfjs-viewer-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (4)Versions (15)Used By (0)

JjalvarezlPDFjsViewerBundle
===========================

[](#jjalvarezlpdfjsviewerbundle)

[![Build Status](https://camo.githubusercontent.com/f3f54d121de6705116d9cd14b1b328a0c4b2daff02e4e52bf654670116b008ad/68747470733a2f2f7472617669732d63692e6f72672f6a6a616c766172657a6c2f4a6a616c766172657a6c5044466a7356696577657242756e646c652e7376673f6272616e63683d736633)](https://travis-ci.org/jjalvarezl/JjalvarezlPDFjsViewerBundle) [![Total Downloads](https://camo.githubusercontent.com/4820d711739e1f29b5c8ae8be96e2d869ca8cd7e03f7ccc858a6679c18221916/68747470733a2f2f706f7365722e707567782e6f72672f6a6a616c766172657a6c2f7064666a732d7669657765722d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/jjalvarezl/pdfjs-viewer-bundle) [![Latest Stable Version](https://camo.githubusercontent.com/b3d8ca48e0e9f47ea34ca835eac2dd0eb200c616a4618df4b98d7e8307cd91e4/68747470733a2f2f706f7365722e707567782e6f72672f6a6a616c766172657a6c2f7064666a732d7669657765722d62756e646c652f76657273696f6e)](https://packagist.org/packages/jjalvarezl/pdfjs-viewer-bundle) [![Latest Unstable Version](https://camo.githubusercontent.com/8ec30a8328edae411e272d242b5dd9222eb88724143402d94c8ff71d2f9e9629/68747470733a2f2f706f7365722e707567782e6f72672f6a6a616c766172657a6c2f7064666a732d7669657765722d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/jjalvarezl/pdfjs-viewer-bundle) [![License](https://camo.githubusercontent.com/a1837b13987b276c06ceb97e78477fad46cea6f222c6b0c410310767f73ae86a/68747470733a2f2f706f7365722e707567782e6f72672f6a6a616c766172657a6c2f7064666a732d7669657765722d62756e646c652f6c6963656e7365)](https://packagist.org/packages/jjalvarezl/pdfjs-viewer-bundle)

This bundle provides a simple integration of the "[PDF.JS library](https://github.com/mozilla/pdf.js)" from mozilla into Symfony 4 with different custom parameters.

Following features are supported:

- Access to pdf outside from web directory.
- Customizable pdf viewer options.
- PDF.js incorporated until 23/03/2017.

Available at:

- [Packagist](https://packagist.org/packages/jjalvarezl/pdfjs-viewer-bundle#dev-master)
- [GitHub](https://github.com/jjalvarezl/JjalvarezlPDFjsViewerBundle/)

Why use this?:

- This bundle renders a pdf with on server side. For this reazon you can have an alternative solution to the default browser viewer that can variate the way that a pdf can be loaded on each browser type.
- This bundle can access files in every part of the server.
- This bundle can delete the pdf after rendering it.

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

[](#installation)

### 1) Download JjalvarezlPDFjsViewerBundle

[](#1-download-jjalvarezlpdfjsviewerbundle)

Its necessary to provide the bundle's name in order to download it:

```
$ php composer.phar require steamulo/pdfjs-viewer-bundle
```

### 2) Enable the bundle

[](#2-enable-the-bundle)

Enable the bundle in the kernel:

```
