kendallb / PrintHtml

Open source command line program to print HTML pages using QtWebKit
MIT License
47 stars 18 forks source link

A4 page #3

Closed SaskoJA closed 4 years ago

SaskoJA commented 6 years ago

Hello, please can you build version with paper size set to A4?

kendallb commented 6 years ago

Ahh, I see I have it hard coded to US letter. Probably should add this as a command line option to b able to change the paper type that is used. At the moment I don't have the Qt tools installed to build this as I have rebuild my Windows VM since I write this. So I will need to install the tools again and then make some changes.

kendallb commented 6 years ago

Ok try the new version in the deploy directory. I added a new -a parameter to select between A4 and Letter paper.

SaskoJA commented 6 years ago

Many thanks. This is it! You made my day.

It is possible build with higher QT version? This version QT have incorrect letter spacing under Windows OS. https://bugreports.qt.io/browse/QTBUG-28774

kendallb commented 6 years ago

Unfortunately it is not possible because they dropped the QtWebKit control in Qt after version 5.0 for some reason. There was talk of bringing it back but last I checked it has not happened. I did see some third party libraries to bring it back but last time I tried I could not get it working. It would be nice to have if build with something later than 4.8.6.