This is a modified version of the jsonresume-theme-stackoverflow, all credits goes to the creator.
$ > cd ~/
$ > npm install resume-cli
$ > cd node_modules
$ > git clone [email protected]:patchon/resume.git jsonresume-theme-stackoverflow
# Set correct format and margins to fit my CV,
$ > vim resume-cli/build/export-resume.js (~:126)
await page.pdf({
path: fileName + format,
format: 'A4',
printBackground: true,
margin: {
top: '20px',
bottom: '30px',
right: '50px',
left: '50px'
},
...themePkg.pdfRenderOptions
});
# Create pdf,
$ > cd ~/node_modules/jsonresume-theme-stackoverflow
$ > ~/node_modules/.bin/resume export --format pdf --theme . Patrik\ Martinsson.pdf
Available under the MIT license.