This library provides a number of PDF::Reader based tools for use in testing PDF output. Presently, the primary purpose of this tool is to support the tests found in Prawn, a pure Ruby PDF generation library. However, it may be useful to others, so we have made it available as a gem in its own right.  https://github.com/yob/pdf-reader  https://github.com/prawnpdf/prawn
Gemfile gem 'pdf-inspector', '~> 1.2.0'
install gem install pdf-inspector