I have thousands of pdf's that have meaningless names, and are scattered across several folders. I need to rename them, and fortunately most of them are referenced through links in spatial layers, where the attribute tables have meaningful information about the files and a column called 'hotlinks' has a directory path pointing to the pdf's.
Is there a method in QGIS that can follow the paths in the attribute tables, and rename the pdf's in that path based on the attributes in the layer? I will have a new field that contains the new name, eg. concat("Field1","Field2","Field3"), so I'd like to rename the pdf's based on that.
The catch...the pdf's are scattered around and are not in the same folder, so the script can't just point to one folder.