Skip to content

Commit

Permalink
Merge pull request #6 from alexander-schranz/patch-1
Browse files Browse the repository at this point in the history
Update readme installation
  • Loading branch information
alexander-schranz committed Oct 14, 2015
2 parents 594eac7 + f4f45c3 commit 9ba3f96
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,50 @@
MassivePdfBundle
================

Built upon KnpSnappyBundle: https://github.com/KnpLabs/KnpSnappyBundle

## Installation

**Install the bundle with composer.**

``` json
composer require massive/pdf-bundle
```

**Add bundle to your symfony kernel.**

``` php
new Knp\Bundle\SnappyBundle\KnpSnappyBundle(),
new Massive\Bundle\PdfBundle\MassivePdfBundle(),
```

**Install wkhtmltopdf**

Ubuntu:

```
apt-get install wkhtmltopdf
apt-get install xvfb
echo ‘xvfb-run –server-args=”-screen 0, 1024x768x24″ /usr/bin/wkhtmltopdf $*’ > /usr/bin/wkhtmltopdf.sh
chmod a+x /usr/bin/wkhtmltopdf.sh
ln -s /usr/bin/wkhtmltopdf.sh /usr/local/bin/wkhtmltopdf
wkhtmltopdf http://www.google.com output.pdf
```

MacOSX

http://wkhtmltopdf.org/downloads.html

**Configure Knp Snappy Bundle**

``` yml
knp_snappy:
pdf:
enabled: true
binary: /usr/local/bin/wkhtmltopdf
options: []
```
## Usage
========
Expand Down

0 comments on commit 9ba3f96

Please sign in to comment.