Update lib/pdf_helper.rb

conditional assignment of :file option was not correctly implemented. 
Still ended up with :file => nil in the hash.
Merge pull request #177 from linoj/master

Missed conditional assignment of :file option