Add xpdf.rb

Add sample code to README