added the hook_file_update to fix the pdf with spaces in the name