Created
February 6, 2016 20:14
-
-
Save ryanwr/b63db0957710a430c6ef to your computer and use it in GitHub Desktop.
Convert source code to PDF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Generate PDF file of source code using enscript and ps2pdf | |
enscript -r \ | |
--columns=2 \ | |
--file-align=1 \ | |
--highlight \ | |
--color=1 \ | |
--line-numbers \ | |
--header='$N|Page $% of $=' \ | |
-o - \ | |
`find . -name '*.java'` \ | |
| ps2pdf - files.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment