From 0f08d04698c814955116b6bae50752e64b774d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Thu, 23 Dec 2021 18:28:03 +0000 Subject: Thu Dec 23 06:28:03 PM UTC 2021 --- .bin/resume-to-pdf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 .bin/resume-to-pdf (limited to '.bin/resume-to-pdf') 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}" -- cgit v1.2.3