Skip to content

Commit 9ba3f96

Browse files
Merge pull request #6 from alexander-schranz/patch-1
Update readme installation
2 parents 594eac7 + f4f45c3 commit 9ba3f96

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,50 @@
11
MassivePdfBundle
22
================
33

4+
Built upon KnpSnappyBundle: https://github.com/KnpLabs/KnpSnappyBundle
5+
46
## Installation
57

8+
**Install the bundle with composer.**
9+
610
``` json
711
composer require massive/pdf-bundle
812
```
913

14+
**Add bundle to your symfony kernel.**
15+
16+
``` php
17+
new Knp\Bundle\SnappyBundle\KnpSnappyBundle(),
18+
new Massive\Bundle\PdfBundle\MassivePdfBundle(),
19+
```
20+
21+
**Install wkhtmltopdf**
22+
23+
Ubuntu:
24+
25+
```
26+
apt-get install wkhtmltopdf
27+
apt-get install xvfb
28+
echo ‘xvfb-run –server-args=”-screen 0, 1024x768x24″ /usr/bin/wkhtmltopdf $*’ > /usr/bin/wkhtmltopdf.sh
29+
chmod a+x /usr/bin/wkhtmltopdf.sh
30+
ln -s /usr/bin/wkhtmltopdf.sh /usr/local/bin/wkhtmltopdf
31+
wkhtmltopdf http://www.google.com output.pdf
32+
```
33+
34+
MacOSX
35+
36+
http://wkhtmltopdf.org/downloads.html
37+
38+
**Configure Knp Snappy Bundle**
39+
40+
``` yml
41+
knp_snappy:
42+
pdf:
43+
enabled: true
44+
binary: /usr/local/bin/wkhtmltopdf
45+
options: []
46+
```
47+
1048
## Usage
1149
========
1250

0 commit comments

Comments
 (0)