fishmad/wkhtmltopdf-windows

This package is abandoned and no longer maintained. No replacement package was suggested.

Convert html to pdf using webkit (qtwebkit). Static linked windows binary 64 bit systems.

0.12.2.4 2015-09-02 11:45 UTC

This package is not auto-updated.

Last update: 2018-01-20 09:06:49 UTC


README

This Repo contains the Windows (MinGW-w64) 64-bit Binaries for Windows XP/2003 or later; bundles gcc DLLs. This version is forked from the github.com/wemersonjanuario/wkhtmltopdf-windows that version relies on VC++ Runtime 2013 and dependencies being installed on the workstation (this package does not and is more independant), so this solution allows me work on my laravel app across multiple windows computers and still use wkhtmltopdf to generate PDF files without needing to install the full wkhtmltopdf package.

wkhtmltopdf project. More about the functionality of wkhtmltopdf and wkthmltoimage can be found there.

Binaries for Microsoft Windows using VC++ Runtime 2013, also installable with composer, can be found here: github.com/wemersonjanuario/wkhtmltopdf-windows

Binaries for Linux i386, also installable with composer, can be found here: github.com/h4cc/wkhtmltopdf-i386

Binaries for Linux amd64, also installable with composer, can be found here: github.com/h4cc/wkhtmltopdf-amd64

Use one of these Laravel 5.* PHP packages

https://github.com/barryvdh/laravel-snappy OR github.com/wemersonjanuario/laravelpdf

Installation

In case this binary package does not work on your work station, try installing the matching operating system packages from here: http://wkhtmltopdf.org/downloads.html.

Packagist

This package can be found on Packagist and installed with Composer.

Require the package for Windows with:

composer require "fishmad/wkhtmltopdf-windows: dev-master"

The binaries will then be located at:

vendor/fishmad/wkhtmltopdf-windows/bin/64bit

Also a symlink will be created in your configured bin/ folder, for example:

vendor/bin/32bit/wkhtmltopdf.exe.bat and vendor/bin/64bit/wkhtmltopdf.exe.bat

If you choose to use barryvdh/laravel-snappy binary interface wrapper like I have then simply add this line into config/snappy.php

'binary' => base_path('vendor\fishmad\wkhtmltopdf-windows\bin\64bit\wkhtmltopdf.exe'),

or for a tidier code use a simlinks from above like so:

'binary' => base_path('vendor\bin\wkhtmltopdf.exe.bat'),