Before you use this script, you need to have the following installed on your system:
- Pandoc: A universal document converter.
- Chromium: An open-source browser used for the HTML to PDF conversion.
For Debian/Ubuntu-based systems, use:
sudo apt-get install pandocFor Red Hat/Fedora-based systems, use:
sudo yum install pandocFor macOS, you can use Homebrew:
brew install pandocFor Debian/Ubuntu-based systems, use:
sudo apt-get install chromium-browserFor Red Hat/Fedora-based systems, use:
sudo yum install chromiumFor macOS, you can use Homebrew:
brew install chromiumTo use the script, navigate to the directory where the script is located and run:
./generate.sh <input_markdown_file> <output_pdf_file>Replace <input_markdown_file> with the path to your Markdown file and <output_pdf_file> with the desired path for the output PDF file.
For example:
./generate.sh my_resume.md my_resume.pdf- You may need to give execute permissions to the script using
chmod +x generate.sh.