Reading PDF to rename

I could not find the instructions I needed to do the following:
I am exporting mail messages from Apple Mail as PDFs, I am using Keyboard Masetro and this works great. Now I would like Hazel to rename the file based on information in the PDF. I would like Hazel to rename the file by reading the company name or sender and put the date the invoice was generated or even the date the email was received.
any Ideas
I am exporting mail messages from Apple Mail as PDFs, I am using Keyboard Masetro and this works great. Now I would like Hazel to rename the file based on information in the PDF. I would like Hazel to rename the file by reading the company name or sender and put the date the invoice was generated or even the date the email was received.
any Ideas