How to rename file from OCR content

Hi
I'm wanting to scan a lot of paper documents soon with my scansnap manager software.
I intend to scan them to PDF's that have been OCR'd.
What I'd like Hazel to do is to be able to take the top line of text in the scanned pdfs and use that to rename the file.
is there a way to do this?
I'm wanting to scan a lot of paper documents soon with my scansnap manager software.
I intend to scan them to PDF's that have been OCR'd.
What I'd like Hazel to do is to be able to take the top line of text in the scanned pdfs and use that to rename the file.
is there a way to do this?