changing path to pdf class