If I understand you correctly, you want to extract the paper title which is present on the first page of the PDF (usually in bigger print than the abstract and following text) and use it as the file name.
I'm afraid that you probably won't find a one-fits-all solution, since there can be varying amounts of non-title text at the beginning of the PDF, making it hard to extract the actual title for PDFs coming from different journals.
TO get a solution that works for a certain percentage of your PDFs, I would probably
- use Ghostscript's pdf2ps and ps2ascii to extract plain text from the PDF
- parse this plain text for a journal title somewhere in the first kilobyte or so
- depending on the journal try to come up with a heuristic extracting the paper title from the plaintext.
Of course if you can find a tool that can extract relative text size as well as plain text from a PDF, that would probably also greatly help.
Good luck - would be interesting to see if you find a way to automate that! The main thing I do when downloading articles myself is to name them in a systematic way, but it sure would be great to have something to do this afterwards...
Zotero does this better, and without the corporate association Mendeley now suffers from. – Jack Wasey – 2018-09-11T18:08:19.263
1@JackWasey You're right. Considering that my post is from 2011, I'm surprised to see it's owned by Elsevier now, and how little it has improved over time. – slhck – 2018-09-12T07:21:40.137
I've +1'd Mendely because it works pretty well, but it can suometimes be flaky in extracting document titles. – Ian Turner – 2011-04-11T15:14:07.353
@Ian Sadly, yes. There's never gonna be a perfect solution. It's weird that it doesn't auto-capitalize titles when they're all caps in the original PDF. – slhck – 2011-04-11T17:39:39.513
It's so awesome! saved me so much time! Thank you so much! – raindrop – 2013-08-18T06:12:20.970