smartly rename PDF documents

So Hazel enables renaming PDFs based on identifying patterns in them, but is there a rule set that you use which renames a PDF "intelligently" (if the PDF does not match any specific rules before this catch all one that I am hoping can be created?
So this catch all rule can be such that it captures the first date in the document in any of the typical date formats, and then picks up headings based on PDF metadata and failing that PDF text that appears to be a heading of sorts and failing that just the first few words I suppose in the PDF.
Do share. Thank you!
So this catch all rule can be such that it captures the first date in the document in any of the typical date formats, and then picks up headings based on PDF metadata and failing that PDF text that appears to be a heading of sorts and failing that just the first few words I suppose in the PDF.
Do share. Thank you!