From ac41fa88b49f0abb98911e07628355ad499ae28a Mon Sep 17 00:00:00 2001 From: benweet Date: Sat, 31 Jan 2015 11:32:41 +0000 Subject: [PATCH] Fixed pdf header/footer params. Fixes #510 --- app/pdf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/pdf.js b/app/pdf.js index 41cb7dc2..80bd61e4 100644 --- a/app/pdf.js +++ b/app/pdf.js @@ -90,14 +90,14 @@ exports.export = function(req, res, next) { // Header options.headerCenter && params.push('--header-center', options.headerCenter); options.headerLeft && params.push('--header-left', options.headerLeft); - options.headerRight && params.push('--header-left', options.headerRight); + options.headerRight && params.push('--header-right', options.headerRight); options.headerFontName && params.push('--header-font-name', options.headerFontName); options.headerFontSize && params.push('--header-font-size', options.headerFontSize); // Footer options.footerCenter && params.push('--footer-center', options.footerCenter); options.footerLeft && params.push('--footer-left', options.footerLeft); - options.footerRight && params.push('--footer-left', options.footerRight); + options.footerRight && params.push('--footer-right', options.footerRight); options.footerFontName && params.push('--footer-font-name', options.footerFontName); options.footerFontSize && params.push('--footer-font-size', options.footerFontSize);