Checking if a signature exists in a PDF file and saving it under a specific naming convention

I want to create a tool that is linked to a shared mailbox on Outlook and tracks the attachments that come in. When the tool detects a particular form and finds a signature on Appendix 2, it renames it according to a specific convention and saves it in a folder. Can this be done?