blob: 4ee93ca7dc7a67fc9e2dbaf146eff3c3eef09a1f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
INFILE="$1"
CSSFILE="$2"
OUTFILE="$(echo "$1" | cut -d'.' -f1).pdf"
PD=$(which pandoc)
PDFLAGS="--from=markdown_mmd+yaml_metadata_block+smart --standalone"
WK=$(which wkhtmltopdf)
WKFLAGS="-B 25mm -T 25mm -L 25mm -R 25mm -q -s Letter"
"$PD" "$PDFLAGS" --to=html -V css="$CSSFILE" "$INFILE" | "$WK" "$WKFLAGS" - "$OUTFILE"
|