blob: 4ee93ca7dc7a67fc9e2dbaf146eff3c3eef09a1f (
plain) (
tree)
|
|
#!/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"
|