The code does below steps: Decrypt password protected pdf files Pick the date in the pdf files from the first page and rename the files based on those dates