We had a project work to submit C programs. Originally, the teacher told us to write the programs by hand. I had written ~20 C programs in my computer and was feeling lazy to write out all of them by hand onto paper. I then asked the teacher if I could submit the programs printed on paper and she said yes.
I was already using Pygments to highlight my source code and was thinking if I could print them highlighted with it.
Pygments has many formatters to format output. I used .rtf but you can also output images as well.