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
#!/usr/bin/env python | |
""" | |
Change the color of the highlight annotations in PDF document(s). | |
The destination color is hardcoded in this script. | |
""" | |
# Adapted from: | |
# https://unix.stackexchange.com/a/118492/112647 | |
# PDF format reference: | |
# http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/PDF32000_2008.pdf | |
# pages 12 to 13 define the character sets |