I've created a gem called code2pdf,
which is a simple and open-source tool to convert your codebase to a PDF file.
It might be especially useful in case you need to register you software.
In order to install it, just run:
bash
gem install code2pdf
Then, open a terminal and run:
bash
code2pdf [project path] [blacklist file]
The blacklist file is optional and must be a YML file, similar to the following: