I have a number of PDFs that I downloaded from JStor. They come with unhelpful numeric filenames, but often there is at least a title if not the author in the metadata.
How do I batch rename a number of PDF's so that it will search the metadata and rename the file "Author-Title" when both "Author" and "Title" are specified in the metadata? If one is missing, I'd like it to just rename the file to reflect the metadata which is present, naming the file "Author" or "Title". If there is no metadata I would like nothing to change.