33 lines
1.3 KiB
Bash
Executable File
33 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# This script generates PDF and DOCX files from markdown resumes using Pandoc
|
|
# Requirements: Pandoc must be installed and accessible in the system PATH
|
|
|
|
DOC_DIR="$HOME/Documents/@working"
|
|
|
|
PDF_MARGIN="0.75in"
|
|
PDF_FONT="Lato"
|
|
PDF_FONT_SIZE="11pt"
|
|
PDF_ALIGNMENT="raggedright"
|
|
|
|
PDF_OPTIONS=(
|
|
-V geometry:margin="$PDF_MARGIN"
|
|
-V mainfont="$PDF_FONT"
|
|
-V fontsize="$PDF_FONT_SIZE"
|
|
-V "$PDF_ALIGNMENT"
|
|
)
|
|
|
|
echo "Generating PDFs..."
|
|
pandoc resume.md -f markdown -t pdf -o "$DOC_DIR/Charles_Danesi_Resume.pdf" "${PDF_OPTIONS[@]}"
|
|
pandoc remote-support-engineer.md -f markdown -t pdf -o "$DOC_DIR/Charles_Danesi-Remote_Support_Engineer.pdf" "${PDF_OPTIONS[@]}"
|
|
pandoc it-support.md -f markdown -t pdf -o "$DOC_DIR/Charles_Danesi-IT_Support_Specialist.pdf" "${PDF_OPTIONS[@]}"
|
|
pandoc system-admin.md -f markdown -t pdf -o "$DOC_DIR/Charles_Danesi-System_Administrator.pdf" "${PDF_OPTIONS[@]}"
|
|
|
|
echo "Generating DOCX files..."
|
|
pandoc resume.md -f markdown -t docx -o "$DOC_DIR/Charles_Danesi_Resume.docx"
|
|
pandoc remote-support-engineer.md -f markdown -t docx -o "$DOC_DIR/Charles_Danesi-Remote_Support_Engineer.docx"
|
|
pandoc it-support.md -f markdown -t docx -o "$DOC_DIR/Charles_Danesi-IT_Support_Specialist.docx"
|
|
pandoc system-admin.md -f markdown -t docx -o "$DOC_DIR/Charles_Danesi-System_Administrator.docx"
|
|
|
|
echo "All files have been generated."
|