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