Ask Your Question
0

wkhtmltopdf

asked 2017-10-19 11:19:47 -0500

alcyeonnero gravatar image

Hello, have been tasked with installing a second version of wkhtmltopdf for testing purposes on the main/live server. The first version installed is having an issue where we are receiving a QPix error

QPixmap: Cannot create a QPixmap when no GUI is being used

Our developers tried out the page they were having issues with on the newest version of wkhtmltopdf and found that the page they are calling to works fine. They would like to run a second version of this with the file path being /utilities, I know I have to make the folder of /utilities, I am more curious as to installing a new version of wkhtmltopdf without it interfering with the current version.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-10-19 15:15:57 -0500

masteroman gravatar image

Then you'll likely need to compile utility manually with --prefix= option defined to your custom path

Source is available on https://github.com/wkhtmltopdf/wkhtml... but I can see that they also have pre-compiled binary on https://wkhtmltopdf.org/downloads.html so you could simply try downloading that and moving it to any directory.

edit flag offensive delete link more
0

answered 2017-10-30 10:55:04 -0500

alcyeonnero gravatar image

So here is what I came up with for this, I created a folder called 'utilities' and renamed the file wkhtmltopdf to wkhtmltopdf_12.4 and placed that in the utilities folder. I also copied the file and placed it in the /usr/local/bin with the newly named file.

The developers were able to alter their code to properly call out to the file and keeping both versions available for use

edit flag offensive delete link more

Question Tools

Stats

Asked: 2017-10-19 11:19:47 -0500

Seen: 338 times

Last updated: Oct 19 '17