Support PDF file

TODO: there is a workaround for Ruby/Poppler 2.1.0 or earlier in pdf.rb.