PDFCreator uses tokens to add variable content for several settings like filename, target folder or e-mail content.
For example you could automatically sort created invoices by adding the <DateTime> token to the target folder using auto-save:
MyInvoice<DateTime:yyyy-mm>
The token will set a folder for the year (with four digits) and the month (two digits) e.g. MyInvoice2014-10.
The following list explains all available tokens:
Tip
Have a look at the User Tokens section for more info about user tokens, which allow you to define own tokens in the original document.
Inserts the profile settings author template with replaced tokens.
Inserts the computer name or IP address of the computer from which the print job was launched. This can also be used in the autosave directory to save directly to client computers (i.e. “\<ClientComputer>\MyShare”).
Inserts the name of the computer.
A counter that counts the print jobs. This token is parameterizable. <Counter:Format>
Sample:
<Counter:000> Displays the number with 3 digits.
You will find a full list of parameters in the MSDN documentation: Custom Numeric Format Strings.
Inserts the date and time at which the PDF is created. This token is parameterizable. <DateTime:Format>
Samples:
<DateTime:yyyy> Displays the year as a 4-digit number.
<DateTime:mmm> Displays the month as an abbreviation (e.g. Jan or Dec).
You will find a full list of parameters in the MSDN documentation User-Defined Date/Time Formats
Inserts the path to the user’s desktop. For example: C:\Users\username\Desktop
Inserts filename and dropbox shared links inside brackets. If you use this token in the e-mail text, PDFCreator will not add the converted file as an e-mail attachment. This token is parameterizable. You can define, how to separate multiple output files. <DropboxFullLinks:Format>
Samples:
<DropboxFullLinks:,> Separates multiple shared links with a comma.
File1.pdf (https://dropbox.com/file1.pdf), File2.pdf (https://dropbox.com/file2.pdf)
<DropboxFullLinks:\r\n> Separates shared links with a wordwrap (new line for each file).
File1.pdf (https://dropbox.com/file1.pdf)
File2.pdf (https://dropbox.com/file2.pdf)
Inserts shared Dropbox Link as FileName with the destination address of the shared link it goes to. If you use this token in the e-mail text, PDFCreator will not add the converted file as an e-mail attachment. This token is parameterizable. You can define, how to separate multiple output files. <DropboxHtmlLinks:Format>
Samples:
<DropboxHtmlLinks:,> Separates multiple Dropbox filenames with a comma.
File1.pdf, File2.pdf
<DropboxHtmlLinks:\r\n> Separates the Dropbox filenames with a wordwrap (new line for each file).
File1.pdf
File2.pdf
Inserts any environment variable of your system. For example <Environment:OS> returning your operating system. This also includes variables from the Volatile Environment on Terminal Servers.
If <PrintJobName> contains a complete file path, this variable will contain the folder name. If this variable is used for the directory, all files will be saved in the same directory as the printed file.
Note
Only some applications (e.g. Autocad or Irfanview) are passing the complete filename. That is why this token should not be set without checking your application.
If <PrintJobName> contains a file path, this variable will contain the name of that file. Else it sets the value form <PrintJobName>.
The job id used in the Windows printer system. This token is parameterizable. <JobId:Format>
Sample:
<JobId:000> Displays the number with 3 digits.
You will find a full list of parameters in the MSDN documentation: Custom Numeric Format Strings.
Note
This is the value the Windows printer systems assigns. If the spooler is restarted (i.e. during a reboot), this value also is reset. If you need a value that is unique across reboots, you should use the token <Counter> instead.
Inserts the profile settings keywords template with replaced tokens.
Inserts the path to the user’s Documents folder. For example: C:\Users\username\Documents
Inserts the path to the user’s Pictures folder. For example: C:\Users\username\Pictures
Inserts the number of copies requested for the print job (usually 1).
Inserts the total number of pages in the document.
Note
The total number of pages depends on cover and attachment pages, if you change the cover or attachment page settings after the token has been inserted (i.e. the token is inserted in the title and you change the cover page from the print job window), you might not receive the correct number of pages. If you use it after the conversion is completed (i.e. in the script action), you will always receive the correct number.
Inserts the output filename(s). This token is parameterizable. You can define, how to separate multiple output files. <OutputFilenames:Format>
Samples:
<OutputFilenames:,> Separates multiple output files with a comma.
<OutputFilenames:\r\n> Separates the filenames with a wordwrap (new line for each file).
Inserts the target directory for the created output files.
Inserts the name of the printer, typically “PDFCreator”.
Inserts the name of the author, who launched the print job. (This is not necessarily the user currently logged in. That would be the token <UserName>.)
Inserts the original document title from the print job.
Inserts the ID of the Windows client session. This is useful on Windows Terminal Servers to distinguish the sessions.
Inserts the profile settings subject template with replaced tokens.
Inserts the profile settings title template with replaced tokens.
Inserts the username of the currently logged in user account. (This is not necessarily the user/author, who launched the print job. That would be the token <PrintJobAuthor>.)
Gives Professional and PDFCreator Terminal Server users the possibility to define own tokens directly in the original document. For more information have a look at the User Tokens section.