see my pull request

I have a problem with varius pdf types, and i need change this, to make it functionally, plz see this pull request.