Last active
August 29, 2015 14:25
-
-
Save patrobinson/ac4af3cf291fdb09ffc9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This package was debianized by: | |
Emmanuel Bouthenot <[email protected]> on Sun, 22 Feb 2009 16:00:59 +0000 | |
It was downloaded from: | |
http://code.google.com/p/wkhtmltopdf/ | |
Upstream Authors: | |
Jakob Truelsen <[email protected]> | |
Copyright: | |
Copyright (C) 2008-2009 Jakob Truelsen <[email protected]> | |
Various patches: | |
Copyright (C) 2009 Mário Silva | |
Copyright (C) 2009 Emmanuel Bouthenot | |
Copyright (C) 2009 Benoit Garret | |
License: | |
wkhtmltopdf is licensed under the terms of the GPL version 3 or | |
(at your option) any later version. | |
On Debian systems, the complete text of the GNU General | |
Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'. | |
The Debian packaging is licensed under the GPLv3: | |
Copyright (C) 2009, Emmanuel Bouthenot <[email protected]> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Description: Fix --encoding option | |
Author: Emmanuel Bouthenot <[email protected]> | |
Forwarded: not-needed | |
Last-Update: 2010-10-12 | |
--- a/src/pageconverter.cc | |
+++ b/src/pageconverter.cc | |
@@ -59,14 +59,14 @@ | |
phaseDescriptions.push_back("Resolving links"); | |
phaseDescriptions.push_back("Counting pages"); | |
phaseDescriptions.push_back("Loading headers and footers"); | |
- if (!settings.defaultEncoding.isEmpty()) | |
- QWebSettings::globalSettings()->setDefaultTextEncoding(settings.defaultEncoding); | |
if (!settings.enableIntelligentShrinking) { | |
QWebSettings::globalSettings()->setPrintingMaximumShrinkFactor(1.0); | |
QWebSettings::globalSettings()->setPrintingMinimumShrinkFactor(1.0); | |
} | |
QWebSettings::globalSettings()->setPrintingMediaType(settings.printMediaType?"print":"screen"); | |
#else | |
+ if (!settings.defaultEncoding.isEmpty()) | |
+ QWebSettings::globalSettings()->setDefaultTextEncoding(settings.defaultEncoding); | |
phaseDescriptions.push_back("Loading page"); | |
#endif | |
phaseDescriptions.push_back("Printing pages"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment