summaryrefslogtreecommitdiff
path: root/_scripts/resume.sh
diff options
context:
space:
mode:
Diffstat (limited to '_scripts/resume.sh')
-rwxr-xr-x_scripts/resume.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/_scripts/resume.sh b/_scripts/resume.sh
new file mode 100755
index 0000000..4ee93ca
--- /dev/null
+++ b/_scripts/resume.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+INFILE="$1"
+CSSFILE="$2"
+OUTFILE="$(echo "$1" | cut -d'.' -f1).pdf"
+
+PD=$(which pandoc)
+PDFLAGS="--from=markdown_mmd+yaml_metadata_block+smart --standalone"
+WK=$(which wkhtmltopdf)
+WKFLAGS="-B 25mm -T 25mm -L 25mm -R 25mm -q -s Letter"
+
+"$PD" "$PDFLAGS" --to=html -V css="$CSSFILE" "$INFILE" | "$WK" "$WKFLAGS" - "$OUTFILE"
+