1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-12-22 21:37:21 +00:00

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

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