corrects pdf filepaths