mbabst
January 7, 2025, 8:36pm
1
Hi
I want to automatically rename my scans based on the company name within the PDF like this:
If PDF contains „Company A“, new file name „Document Date_Company A.pdf“
If PDF contains „Company B“, new file name „Document Date_Company B.pdf“
If PDF contains „Company C“, new file name „Document Date_Company C.pdf“
I know the names of the companies. Is this possible with a single smart rule or do I have to make a smart rule for every company?
Thank you a lot for your help!
Welcome @mbabst
Possible? Yes and with more than one approach possible.
Assuming you wanted to do this when importing the files it depends on if the PDFs have a text layer with the company name.
Are these scans of yours?
If so, have you done OCR on them?
And how many company names are you anticipating?
mbabst
January 7, 2025, 9:01pm
3
Yes these scans are mine and OCR is performed on all of them. Probably around 27 companies in total. All PDFs have a different structure.
What I want to to is basically this
but unfortunately (Company A | Company B | Company C) doesn‘t work.
What specifically doesn’t work ?
Also, this method isn’t the only option available.
mbabst
January 8, 2025, 6:59am
5
I‘ve found the problem, you have to use instead of () for the conditions but () for Scan Text. It works like this.
Do the company names have multiple words?
mbabst
January 8, 2025, 7:11am
7
Yes some have multiple words.
In that case quoting the names like "Company A"
in the conditions should be sufficient.