adding the changes Thijs made to the booklet.sh script

main
mb 9 months ago
parent f97da16b06
commit b640ed0c42

@ -34,11 +34,12 @@ rm booklet-stylesheet.css.tmp
# Turn the HTML page into a PDF with weasyprint # Turn the HTML page into a PDF with weasyprint
# --------------------------------------------------------------- # ---------------------------------------------------------------
echo ">>> generating $WIKIPAGE.pdf (with weasyprint)" PDFNAME=$(echo "$WIKIPAGE" | tr :/#%{}\&\\\<\>*?/\!\'\"@+\`= _)
weasyprint https://pzwiki.wdka.nl/mediadesign/$WIKIPAGE?action=render --stylesheet booklet-stylesheet.css $WIKIPAGE.pdf echo ">>> generating $PDFNAME.pdf (with weasyprint)"
weasyprint https://pzwiki.wdka.nl/mediadesign/$WIKIPAGE?action=render --stylesheet booklet-stylesheet.css $PDFNAME.pdf
# And turn the PDF into an A5 booklet PDF for printing # And turn the PDF into an A5 booklet PDF for printing
# --------------------------------------------------------------- # ---------------------------------------------------------------
# pdfbook2 is part of the texlive-extra-utils package in Debian # pdfbook2 is part of the texlive-extra-utils package in Debian
echo ">>> generating $WIKIPAGE-book.pdf (with pdfbook2)" echo ">>> generating $PDFNAME-book.pdf (with pdfbook2)"
pdfbook2 --paper=a4paper --short-edge --no-crop $WIKIPAGE.pdf pdfbook2 --paper=a4paper --short-edge --no-crop $PDFNAME.pdf

Loading…
Cancel
Save