Browse Source

fix height auto-measurement for headers/footers

This was incorrect after the switch to using 96 DPI.
partulaj 5 years ago
parent
commit
9d65474f26
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/pdfconverter.cc

+ 1 - 1
src/lib/pdfconverter.cc

@@ -46,7 +46,7 @@ using namespace wkhtmltopdf::settings;
 #define STRINGIZE_(x) #x
 #define STRINGIZE(x) STRINGIZE_(x)
 
-const qreal PdfConverter::millimeterToPointMultiplier = 2.83464567;
+const qreal PdfConverter::millimeterToPointMultiplier = 3.779527559;
 
 DLL_LOCAL QMap<QWebPage *, PageObject *> PageObject::webPageToObject;