generating an PDF with all Varia's activities since 2017, using the website + weasyprint
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
668 B

#!/bin/bash
echo "---"
echo "turning https://varia.zone/index.html into varia-activities-01.pdf"
echo "---"
weasyprint https://varia.zone/ -s varia-to-print.css varia-activities-01.pdf
for i in 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
do
echo "---"
echo "turning https://varia.zone/index$i.html into varia-activities-$(printf %02d $i).pdf"
echo "---"
weasyprint https://varia.zone/index$i.html -s varia-to-print.css varia-activities-$(printf %02d $i).pdf
done
echo "---"
echo "glueing everything together into varia-activities-since-2017.pdf"
echo "---"
pdfunite varia-activities-*pdf varia-activities-since-2017.pdf
echo "---"
echo "done!"
echo "---"