I have several PDF files that are corrupted in some way; however, they will open in Preview. I have discovered that I can fix them (for what I need) simply by opening the file in Preview, selecting Duplicate from the File menu, renaming the file the same as the original and then replacing the original file when asked. Is there a way I can use Automator to do all of this for me? It needs to be duplicated from within Preview to fix the problem with the PDF's as simply duplicating the file in the Finder doesn't fix the problem. I'm running Sierra 10.12.5. Thank you.