fix pdf rendering on heroku