Shell script to convert code listing colors in Gradle PDF to be printer friendly. Script uses "pdftk" and "mimetype" command. Be shure you have them installed on your system. Written and tested with version 2.0 of the Gradle user guide.
Steps to do:
- Download the gradleDocColors.sh script
- Go to http://www.gradle.org/documentation and download the userguide.pdf
- Set script to be executable
chmod +x gradleDocColors.sh
- Start the script with the userguide.pdf as parameter
./gradleDocColors.sh userguide.pdf
- The script will then uncompress the pdf, change it's colors and then compresses it again
- New document is named as the original but with prefix "print-"
Original code style:
Java code style: (default)
Groovy code style: (changeable in script)