Imported PDF scaper script from Gist to get proper history