antialize/wkhtmltopdf — pull request #33 by ashkulz (2014-01-16 09:03:09+00:00)
Title: fix crash when --header-html is specified

This was introduced in 80cbcc5, where the createPrinter() method created the printer with an empty filename as output filename is initialised in pagesLoaded() but it gets called prior to that. This would result in a crash after the errors such as
``` QWin32PrintEngine::initialize: OpenPrinter failed```
Additionally, QPainter::begin() was not called for the printer resulting in additional errors being printed.