This commit is contained in:
bel
2022-10-17 22:07:44 -06:00
parent 32e836579f
commit 63f7a83318
2 changed files with 105 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ flags() {
set -e
export THEME="${1:-"flat"}"
export PAGE_SIZE="${PAGE_SIZE:-A4}"
}
install() {
@@ -17,7 +18,12 @@ install() {
install_theme
if ! which wkhtmltopdf &> /dev/null; then
sudo apt -y install wkhtmltopdf
log installing wkhtmltopdf
false
sudo apt -y install xfonts-75dpi
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb
sudo dpkg -i wkhtmltox_0.12.6-1.focal_amd64.deb
rm ./wkhtml*.deb
fi
}
@@ -49,7 +55,7 @@ build() {
resume export resume.$ext --theme $THEME
done
false
wkhtmltopdf --page-size $PAGE_SIZE ./resume.html ./resume.pdf
}