Skip to content

Commit

Permalink
Update mdToPDF.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jordig100 authored Nov 27, 2023
1 parent 7ef8e7e commit bb79ea3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion markdownToPDF/mdToPDF.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ sed -i 's|<a href="@|<a href="#|g' "$TMPFILE"
sed -i 's|<pre|<code style="white-space: pre-wrap; page-break-inside: avoid !important; display: block;"|g' "$TMPFILE"
sed -i 's|</pre|</code|g' "$TMPFILE"
sed -i "/Page tweaks/ a * { font-size: large; }" "$TMPFILE"
sed -i 's|margin-top: 64px;|margin-top: 64px; margin-right: 21px;|g' "$TMPFILE"
sed -i 's|margin-bottom: 21px;|margin-bottom: 21px; margin-left: 21px;|g' "$TMPFILE"

MARGIN=14

./wkhtmltopdf --title "$FILE" --footer-left "[section]" --footer-right "[page]/[topage]" --footer-font-size 7 --footer-spacing 4 \
--margin-top $MARGIN --margin-left $MARGIN --margin-right $MARGIN --margin-bottom $MARGIN \
"$TMPFILE" "$FILE.pdf"
"$TMPFILE" "$FILE.pdf"

0 comments on commit bb79ea3

Please sign in to comment.