Download the PHP package ivanpepelko/php-wkhtmltopdf without Composer
On this page you can find all versions of the php package ivanpepelko/php-wkhtmltopdf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ivanpepelko/php-wkhtmltopdf
More information about ivanpepelko/php-wkhtmltopdf
Files in ivanpepelko/php-wkhtmltopdf
Package php-wkhtmltopdf
Short Description wkhtmltopdf php bindings
License MIT
Informations about the package php-wkhtmltopdf
What is this?
Basically: wkhtmltopdf php bindings.
Installation?
Straightforward:
Get it running...
...easily:
or:
or something like that.
The first parameter passed to constructor is path to wkhtmltopdf binary. I recommend these (wkhtmltopdf with patched qt):
Other stuff
Headers & Footers
In header and footer text string the following variables will be substituted:
[page]
Replaced by the number of the pages currently being printed[frompage]
Replaced by the number of the first page to be printed[topage]
Replaced by the number of the last page to be printed[webpage]
Replaced by the URL of the page being printed[section]
Replaced by the name of the current section[subsection]
Replaced by the name of the current subsection[date]
Replaced by the current date in system local format[isodate]
Replaced by the current date in ISO 8601 extended format[time]
Replaced by the current time in system local format[title]
Replaced by the title of the of the current page object[doctitle]
Replaced by the title of the output document[sitepage]
Replaced by the number of the page in the current site being converted[sitepages]
Replaced by the number of pages in the current site being converted
Also, you are able to define additional variables with addHeaderFooterVar()
or addHeaderFooterVars()
methods:
Note: this will not work with html (setHeaderHtml()
or setFooterHtml()
).
Note 2: wkhtmltopdf has an issue with html headers and footer where it adds them gray background (issue#2416 - to be fixed in 0.12.4).
Caching:
All versions of php-wkhtmltopdf with dependencies
symfony/process Version ^3.1
guzzlehttp/guzzle Version ^6.2
symfony/dom-crawler Version ^3.1
symfony/css-selector Version ^3.1