Title of scientific articles PDF

I handle many PDFs that are scientific articles, and I would like to keep them with their original names, as they are always downloaded with very strange names. The problem is that I can't find a pattern that they all follow, so I can't make Hazel automatically associate the titles with the file names. I want to adapt only the title to the file name. Note: I tried using metadata, but it doesn't work in most cases. I thought about using the DOI to obtain the title, but I'm not sure if Hazel can do that, and if it would be very complex to write such a code. Or if there's any other way.
The only characteristic I see that they all share is that the title is always on the first page and it is always in a larger font size compared to the rest of the text in the document or the first page.
The only characteristic I see that they all share is that the title is always on the first page and it is always in a larger font size compared to the rest of the text in the document or the first page.