rcdoc-pipeline/makepdf.sh

16 lines
380 B
Bash
Raw Permalink Normal View History

2024-11-27 13:07:32 +00:00
#!/bin/bash
INPUT_FILE="$1"
OUTPUT_FILE="$(echo $INPUT_FILE|awk -F '.' '{print $1}').pdf"
2024-11-27 13:19:44 +00:00
METADATA_FILE="$2"
TEMPLATE="eisvogel"
2024-11-28 21:05:09 +00:00
#Recommendation for production : proper error handling / arg checking etc (as we do in our SAAS paid version of this)
2024-11-27 13:07:32 +00:00
pandoc \
$INPUT_FILE \
-o $OUTPUT_FILE \
2024-11-27 13:19:44 +00:00
--template $TEMPLATE \
2024-11-27 13:47:30 +00:00
--metadata-file=$METADATA_FILE \
2024-11-27 13:07:32 +00:00
--from markdown \
2024-11-27 13:19:44 +00:00
$PANDOC_OPTIONS