fix: turns out wkhtmltopdf has been depreciated for two years

It was running on a version of QT4 that hadnt gotten a browser update since 2015.
See https://wkhtmltopdf.org/status.html for more info

Its a shame to use a chrome based renderer for this but I would rather have somethign that would work
At least we got teh nix cache out of this though
This commit is contained in:
silver 2024-05-13 15:00:25 +01:00
parent 34a2138c56
commit 04b9be1fbc
Signed by: silver
GPG key ID: 54E2C71918E93B74
3 changed files with 4 additions and 6 deletions

View file

@ -36,7 +36,7 @@ for d in */ ; do
echo "$out_folder/$stripped.pdf"
# convert teh html to pdf
wkhtmltopdf -q --enable-local-file-access --no-stop-slow-scripts "$stripped.html" "$out_folder/$stripped.pdf" 2> ./tmp.txt
puppeteer print "$stripped.html" "$out_folder/$stripped.pdf" 2> ./tmp.txt
fi
done
done

View file

@ -39,7 +39,7 @@ for year in */ ; do
echo $output
wkhtmltopdf -q --enable-local-file-access --no-stop-slow-scripts "$stripped.html" "$output" 2>> ../errors.log
puppeteer print "$stripped.html" "$output" 2>> ../errors.log
fi
done