File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1
1
MassivePdfBundle
2
2
================
3
3
4
+ Built upon KnpSnappyBundle: https://github.com/KnpLabs/KnpSnappyBundle
5
+
4
6
## Installation
5
7
8
+ ** Install the bundle with composer.**
9
+
6
10
``` json
7
11
composer require massive/pdf-bundle
8
12
```
9
13
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
+
10
48
## Usage
11
49
========
12
50
You can’t perform that action at this time.
0 commit comments