cv2pdf
Convert a Markdown CV to PDF.
Install:
Requirements:
- Node.js
$ npm install -g cv2pdf
Usage
Command line
Options:
- --out | -o: output filename
- --css | -c: custom css
- --html | -h: whether to save an html file
- --watch | -w: converts everytime the file is saved
- --help: show usage
# basic example $ cv2pdf cv.md # change the output filename $ cv2pdf --out=cv-latest.pdf cv.md # save only the html and apply custom css $ cv2pdf --html --css=style.css cv.md # convert to html everytime the file is saved $ cv2pdf --watch --html cv.md
Programmatic
var Cv2Pdf = ; // basic examplevar cv2pdf = 'cv.md';cv2pdf; // change the output filenamevar cv2pdf = 'cv.md' out: 'cv-latest.pdf';cv2pdf; // save only the html and apply custom cssvar cv2pdf = 'cv.md' html: true css: 'style.css';cv2pdf; // this method is asynchronouscv2pdf; // watch modifications on a file, also asynchronouscv2pdf;
Styling
Apart from all the HTML tags you can style, the PDF will also render a footer for each page with the class page-footer
:
1 / 3
License
Public Domain
Acknowledgments
- default CSS based on jasonm23/markdown-css-themes