added a function call to copy files to a folder for conversion into pdf