I have thousands of scientific PDFs that i need to rename, many do not have metadata. I would like to be able to create an automator action that could open a folder then open each PDF, copy the title and rename the document and save in a new folder. I have spent hours try to figure this out so I would greatly appreciate nay help. I have Apple G5 2.26Gz quad running os10.6 Thanks!
|
feedback
|
|
There is Mendeley, an online research tool that allows you to manage scientific publications. It has a Mendeley Desktop tool where you can drag and drop PDFs. Mendeley will automatically parse the authors and titles from the PDFs.
Then, you can rename the file by right clicking and "Rename Document Files ...". You can also rename multiple files at once.
It's available for Windows and OS X. | |||||
feedback
|
|
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
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... | |||||||
feedback
|
|
If you do not want to use external software and feel like writing your own script try opening your pdfs as plain text with a text editor, then look for patterns. Either search for the keyword 'title', or search for words in the title and see where they appear. To give you a few examples (scientific journals in chemistry): ACS (American Chemical Society): the title appears between brackets after the second occurrence of the keyword '/title' Wiley publishing: the title appears between brackets after the first (and only) occurrence of the keyword '/Title' Rsc publishing: does not have the title in plain text. Springer: it seem to depend on the journal Since most journals I read are from wiley or acs the situation would look rather good for me. This could be a plan: 1. study pdfs from the publishers you read journals from most often 2. pick out those that have the title in plain text. this should not be a problem since they all include their name in the last Kbytes of the pdf 3. manage those with a script Depending on how many of the journals you read use the title tag for the article's title this could be useful or not. A more general apporach would be: pdf->text->parse text You could start from here: http://stackoverflow.com/questions/25665/python-module-for-converting-pdf-to-text | ||||
|
feedback
|

