Rename a file using the information contained in a pdf.

Hello,
Would it be possible to ask Hazel to search for a line with the same name as a file, but not the same date in a pdf in order to rename the file by the date in the pdf?
You will quickly understand.
I have my account statement, and I would like the invoices (already having a date) to be renamed with the date of the statement.
Easier to search later.
Thank you very much for your help.
Would it be possible to ask Hazel to search for a line with the same name as a file, but not the same date in a pdf in order to rename the file by the date in the pdf?
You will quickly understand.
I have my account statement, and I would like the invoices (already having a date) to be renamed with the date of the statement.
Easier to search later.
Thank you very much for your help.