fixes #2 - pdf caching problems, certain pdf functions did not take language into an account