h4cc / wkhtmltopdf-amd64

wkhtmltopdf - Convert html to pdf using webkit (qtwebkit). Linux amd64 Binary.
http://wkhtmltopdf.org/
GNU Lesser General Public License v3.0
474 stars 170 forks source link

Added WKHTMLToPDF class with path to the binary to make usage even easier #28

Closed mhlavac closed 6 years ago

mhlavac commented 7 years ago

This adds new class WKHTMLToPDF that has path relative to the binary.

Some environment might have complex composer setting, moving dependencies around and it's hard to locate where the binary is. This makes it super easy, because anywhere from the code you can access the binary thanks to \h4cc\WKHTMLToPDF\WKHTMLToPDF::PATH.

mhlavac commented 7 years ago

@h4cc hi, I know you are busy, but do you mind checking this merge request, it would help us a big time.

h4cc commented 6 years ago

Thanks for this great idea!