We receive hundreds of PDFs per day and some of them have encryption passwords. I am loading a list of potential passwords and then running a “For Each File in Folder” activity which includes a Try Catch Activity containing the “ManagePDFPassword” activity. I have setup the TryCatch so that if the passwords don’t match the exception is handled and then an IF statement is run so that incorrect files are moved to a Reprocessing folder and good files are moved to a Decrypted folder. I then move all the failed files back into the folder at the end and recycle through with the next potential password.
This works perfect, however we also receive files that have no passwords. I have tried adding an empty field in my potential password dataset, however the activity is seeing this as an exception.
Does anyone know how I could handle files with no password? Is there a away of determining if a password is present without opening it?