The PDF::Reader library implements a PDF parser conforming as much as possible to the PDF specification from Adobe
James Healy
gem "pdf-reader", "~> 1.3.1"