works for single pdf files now but not yet for folders