Update pdf-generator.rb

will not work with jektll 2 but: https://github.com/jekyll/jekyll/issues/3247#issuecomment-68327765