ソースを参照

Merge pull request #14 from trvrnrth/fix-margins

Fix top/bottom margin when not using dynamic header/footer
Jakob Truelsen 12 年 前
コミット
9329a1a270
1 ファイル変更4 行追加0 行削除
  1. 4 0
      src/lib/pdfconverter.cc

+ 4 - 0
src/lib/pdfconverter.cc

@@ -208,6 +208,10 @@ void PdfConverterPrivate::beginConvert() {
         if (settings.margin.bottom.first == -1) {
             settings.margin.bottom.first = 10;
         }
+        
+        // set static header/footer reserve heights
+        o.headerReserveHeight = settings.margin.top.first;
+        o.footerReserveHeight = settings.margin.bottom.first;
 
         pageLoader.load();
     }