summaryrefslogtreecommitdiffstats
path: root/.bin/resume-to-pdf
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-23 18:28:03 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-23 18:28:03 +0000
commit0f08d04698c814955116b6bae50752e64b774d8f (patch)
tree8cf9a33557093eebfd25aab2872e97639c7e2f62 /.bin/resume-to-pdf
downloaddots-0f08d04698c814955116b6bae50752e64b774d8f.tar.gz
Thu Dec 23 06:28:03 PM UTC 2021
Diffstat (limited to '.bin/resume-to-pdf')
-rwxr-xr-x.bin/resume-to-pdf17
1 files changed, 17 insertions, 0 deletions
diff --git a/.bin/resume-to-pdf b/.bin/resume-to-pdf
new file mode 100755
index 0000000..04dfba8
--- /dev/null
+++ b/.bin/resume-to-pdf
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+src="https://rgoncalves.se/a/resume.html"
+out="resume.pdf"
+margin="2cm"
+
+wkhtmltopdf --page-size A4 \
+ --orientation portrait \
+ --dpi 300 \
+ --image-dpi 300 \
+ --image-quality 100 \
+ --margin-top "${margin}" \
+ --margin-right "${margin}" \
+ --margin-bottom "${margin}" \
+ --margin-left "${margin}" \
+ "${src}" \
+ "${out}"
remember that computers suck.