First cut of a generic document production pipeline (server)
This commit is contained in:
23
PDF/GeneratePDF.sh
Normal file
23
PDF/GeneratePDF.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
export MarkdownInput
|
||||
MarkdownInput="$1"
|
||||
|
||||
export PDFOutput
|
||||
PDFOutput="$2"
|
||||
|
||||
export PDFMetadataFileInput
|
||||
PDFMetadataFileInput="$3"
|
||||
|
||||
export PDFMetadataFile
|
||||
PDFMetadataFile="$4"
|
||||
|
||||
$MO_PATH $YamlInputTemplateFile > $PDFMetadataFile
|
||||
|
||||
pandoc \
|
||||
$MarkdownInput \
|
||||
--template $PANDOC_TEMPLATE \
|
||||
--metadata-file=$PDFMetadataFile \
|
||||
--from markdown \
|
||||
--to=pdf \
|
||||
--output $PDFOutput
|
Reference in New Issue
Block a user