Update lib/pdf_helper.rb

conditional assignment of :file option was not correctly implemented. 
Still ended up with :file => nil in the hash.