mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-05 01:56: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:
parent
3cf850ea0e
commit
be8a7a8361
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user