On 2015/12/16 22:20, Frank Groeneveld wrote:
> Attached to this email you'll find a diff that modifies the wkhtmltopdf port
> so that it is statically built against their patched qt. This will will
> enable the following extra features:
> 
>  * Printing more then one HTML document into a PDF file.
>  * Running without an X11 server.
>  * Adding a document outline to the PDF file.
>  * Adding headers and footers to the PDF file.
>  * Generating a table of contents.
>  * Adding links in the generated PDF file.
>  * Printing using the screen media-type.
>  * Disabling the smart shrink feature of webkit.
> 
> Note that the patches I needed in this diff are copied from the phantomjs
> port and the qt4 port.
> 
> As far as I can see, the current diff has only one problem left: it can only
> be built when qt4 is not already installed on the system, because the
> linking phase will fail otherwise. How would I be able to solve this
> problem?

Check the -L flags - the path to the build directory containing the newly
built Qt library will need to be listed before -L/usr/local/lib. I'm not
sure how you'd go about passing this in through qmake though.

Reply via email to