Julian Todd's PDF cropper from classic ScraperWiki; an attempted port to Flask by me