This template makes it easy to generate documents such as resumes and privacy policies as PDFs from Markdown using GitHub Actions.
Once you update Markdown file, GitHub Actions automatically generate the PDF version of the file.
Check the files and see how it works!
GitHub Actions allow you to automatically generate PDFs by simply updating markdown, if you're using GitHub.
All you need to do is just create a new repository from the following link:
https://github.com/cymagix/pdf-doc-generator-from-markdown/generate
Then, edit Markdown on this repository, and wait GitHub Actions generate your PDF.
If all is well, a new PDF should be generated.
Also, please check GitHub Actions docs to see how it works.
You can also run this generator on you local machine.
First of all, please make sure Node.js is installed in your PC.
After that, excute following command:
npm i
npm run generate
Now, you can see some of PDF files are generated.
Markdown files are converted once to html and then to pdf. And that means you can apply CSS styles to your PDFs.
You can update the PDF design by updating md.css
.
Also, you can update config.json
to update the PDF design.
Please refer to md-to-pdf for other options.