instruct wkhtmltopdf to insert top/bottom margins

added `--margin-top 10` and `-margin-bottom 10` options in the invocation of `wkhtmltopdf`.
This commit is contained in:
ael-code 2016-10-21 20:00:30 +02:00
parent 3cf850ea0e
commit be8a7a8361
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ engines =
# Save the markup to a temporary file
tempFile = fOut.replace /\.pdf$/i, '.pdf.html'
FS.writeFileSync tempFile, markup, 'utf8'
SPAWN 'wkhtmltopdf', [ tempFile, fOut ], false, on_error, @
SPAWN 'wkhtmltopdf', [ '--margin-top', '10', '--margin-bottom', '10', tempFile, fOut ], false, on_error, @
return