small fixes around pdf version generation
Merge pull request #77 from gAmUssA/master

small fixes around pdf version generation