First cut of a generic document production pipeline (server)

This commit is contained in:
2025-07-14 11:25:58 -05:00
parent 7d6ce1d643
commit 3ca09d1954
2 changed files with 37 additions and 0 deletions

23
PDF/GeneratePDF.sh Normal file
View 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

View File

@@ -0,0 +1,14 @@
title: tbd
titlepage: true
author: tbd
date: \today
toc: true
toc-own-page: true
header-left: "\\hspace{1cm}"
header-center: "\\leftmark"
header-right: "Page \\thepage"
footer-left: "\\thetitle"
footer-center: "Copyright ReachableCEO Enterprises LLC"
footer-right: "\\theauthor"
page-background: "tbd"
titlepage-logo: "tbd"