From 4e99f71b8a2c949abad81626123acbf28304126a Mon Sep 17 00:00:00 2001 From: benweet Date: Mon, 1 Sep 2014 23:31:46 +0100 Subject: [PATCH] Fixed wkhtmltopdf parameters. Fixes #501 --- app/pdf.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/pdf.js b/app/pdf.js index 43fa55c1..41cb7dc2 100644 --- a/app/pdf.js +++ b/app/pdf.js @@ -91,15 +91,15 @@ exports.export = function(req, res, next) { 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.headerFontName && params.push('--header-font-name ', options.headerFontName); - options.headerFontSize && params.push('--header-font-size ', options.headerFontSize); + 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.footerFontName && params.push('--footer-font-name ', options.footerFontName); - options.footerFontSize && params.push('--footer-font-size ', options.footerFontSize); + options.footerFontName && params.push('--footer-font-name', options.footerFontName); + options.footerFontSize && params.push('--footer-font-size', options.footerFontSize); // Page size params.push('--page-size', authorizedPageSizes.indexOf(options.pageSize) === -1 ? 'A4' : options.pageSize);