Do you want to rename a PDF?
So you can tell it's intended for proofing? Or that it came from your K2 Server? Or that it has been successfully preflighted and prepared for printing? Or for some other reason?
If you have hotfolder scripting enabled in your system, then you can do that with the attached script.
Download it and install it with the instructions here.
I have a PDF called 25x19.pdf. It's a PDF. And it's 25x19. I attached that to this article too, in case you want to follow along.
Standard result with no scripting
Here is what happens when I submit that job with no scripting:
Default result with script
When I enable scripting and select RenamePDF.bat as my script of choice, the workflow looks subtly different.
Submitting the same PDF gives me the 2nd result:
Do you want all of that information in the name? Perhaps not. We made the script with a user editable section at the top so you can change things to your preference.
Navigate to the script and edit it with a text editor.
At the top you'll see this:
Edit the script
Stay inside our guidelines so you don't break the script.
You can edit the part after the <equals sign> "=" to be whatever literal text you like.
For example, change it to this:
Results after edits to the script
And now your result is the 3rd one, below.
Why is the time missing from the name now? Look above at how I turned that off.
Now I'm going to make another couple of changes:
And my result is the 4th, below. I turned off both date and time stamps.
The workflow above is set to export the PDF with it's new name to some network location identified in the export action. But you can have it be any workflow action you want.