forked from aur1mas/Wkhtmltopdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
executable file
·31 lines (26 loc) · 824 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
About
-----
A PHP class which helps working with WKHTMLTOPDF <http://code.google.com/p/wkhtmltopdf/>
This class is based on <http://code.google.com/p/wkhtmltopdf/wiki/IntegrationWithPhp>
class.
I have removed $_GLOBALS & other static configuration options.
Author
------
Aurimas Baubkus aka aur1mas <[email protected]>
Released under "New BSD license"
Usage
-----
<?php
try {
$wkhtmltopdf = new Wkhtmltopdf(array('path' => APPLICATION_PATH . '/../public/uploads/'));
$wkhtmltopdf->setTitle("Title");
$wkhtmltopdf->setHtml("Content");
$wkhtmltopdf->output(Wkhtmltopdf::MODE_DOWNLOAD, "file.pdf");
} catch (Exception $e) {
echo $e->getMessage();
}
?>
On Gist: https://gist.github.com/733109
Feedback
--------
Issue tracker: https://github.com/aur1mas/Wkhtmltopdf/issues