I have a batch of PDF files that I need to rename using a Powershell Script and the new filename will grab text from a field inside the pdf and replace the last part of the filename
* The original PDF Filename is "735420 - 11678 - Flemington .pdf"
* The field "Customer ID" on the first page of the PDF has the words "24567"
* I want to keep the first two numbers "735420 - 11678" and rename the rest of the filename to include the customer id "24567"
* The new filename will be "735420 - 11678 - 24567.pdf"
I am quite new to Powershell Scripting, so any help would be great.
I did have a look at this article http://www.experts-exchange.com/articles/11211/How-To-Split-Rename-Move-a-Batch-of-PDF-Files-Based-on-Contents-of-the-Files.html
but seems quite complex.