Change Document Name in %Current Document Name%

Post Reply
C.Scholz
Newbie
Posts: 1
Joined: Tue Nov 12, 2019 2:37 pm

Change Document Name in %Current Document Name%

Post by C.Scholz » Tue Nov 12, 2019 2:46 pm

I have been searching for an answer to this for quite a while, but was not able to find anything that helped my issue.

I am using a preflight in PitStop Server to automatically change the fonts in a PDF to embedded and then add a line at the bottom of each page that reads as follows: "Page %Page Number% - %Current Document Name% - %Date%".

The issue is that for the "%Current Document Name%" variable PitStop Server uses the document name of the original file, not the one that is thus created through the preflight. How do I change this to the actual filename, e.g. the one I end up with after the preflight is applied?

I guess it would be possible to work in two layers, e.g. first create embedded fonts and then, after the new file is saved with its new name, trigger a second preflight that merely adds the line at the bottom of each page (which would then automatically use the new filename, as the new "original" document is already renamed). But ideally I want to solve this within a single preflight.

Thank you for any help.

User avatar
Terkelsen
Advanced member
Posts: 225
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

Re: Change Document Name in %Current Document Name%

Post by Terkelsen » Fri Nov 15, 2019 10:04 am

If you are embedding the fonts via a preflight and adding the name via an action the action will always be carried out before the preflight is done. If you use an action to embed the fonts you can make sure that this is done before you run the action, that adds the name.

Post Reply