Fork of code from ScraperWiki at https://classic.scraperwiki.com/scrapers/ruby_pdf_helper