FIX pdf outcome directory

This commit is contained in:
salomonelli 2017-05-20 13:32:12 +02:00
parent 3d2d9347ca
commit deec9ec589
3 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
[{"url":"http://localhost:8080/#/resume-material-dark","delay":0,"selector":"","zoom-factor":1,"format":"pdf","quality":75,"user-agent":"","latency":null,"download":null,"upload":null,"css":"","js":"","debug":false,"root":"","pdf":{"pageSize":"A4","marginsType":1,"printBackground":true,"landscape":false},"size":{"width":2481,"height":3508},"out":"/home/s/workspace/pdf/resume-material-dark.pdf"}]
[{"url":"http://localhost:8080/#/resume-material-dark","delay":0,"selector":"","zoom-factor":1,"format":"pdf","quality":75,"user-agent":"","latency":null,"download":null,"upload":null,"css":"","js":"","debug":false,"root":"","pdf":{"pageSize":"A4","marginsType":1,"printBackground":true,"landscape":false},"size":{"width":2481,"height":3508},"out":"/home/s/workspace/best-resume-ever/pdf/resume-material-dark.pdf"}]

View File

@ -7,7 +7,8 @@ const ResumeToPdf = {
* @return {string} electroshot command
*/
electroshotScript: resume => {
const dir = path.join(__dirname, '../../pdf');
const dir = path.join(__dirname, '../pdf');
console.dir(dir);
return 'electroshot localhost:8080/#/' + resume +
' 2481x3508 --pdf-margin none --format pdf --out ' + dir +
' --filename "' + resume + '.pdf" --pdf-background; ';

Binary file not shown.