main
Bel LaPointe 2023-10-19 10:01:12 -06:00
parent c1370cf6b1
commit e63c4006db
1 changed files with 6 additions and 4 deletions

View File

@ -25,7 +25,9 @@ cp homebrew/homebrew.html $outdir/public/index.html
cp -r ./homebrew/fonts $outdir/public/
echo PRINTING PDF
echo ...which google
which google-chrome-stable
echo ...which miniserve
which miniserve
miniserve $outdir/public &
pid=${!}
@ -37,10 +39,10 @@ google-chrome-stable \
--print-to-pdf=$outdir/public/BreeLaPointeResume.pdf \
--run-all-compositor-stages-before-draw \
--no-pdf-header-footer \
http://localhost:8080
kill $pid
cat $outdir/public/BreeLaPointeResume.pdf | base64 | tr -d '\n'; echo
false
http://localhost:8080/index.html
sleep 5
kill $pid || true
ls $outdir/public/BreeLaPointeResume.pdf
(
if ! which woff2_compress; then