Home › Forums › PDF24 Creator › counter in pdf names or a numeric equivalent for $id placeholder
- This topic has 3 replies, 1 voice, and was last updated 1 week, 5 days ago by PDF24 Support.
-
AuthorPosts
-
2021-03-04 at 11:33 #60482andredaiParticipant
Hi,
I am using pdf24 creator desktop. Is there a way to have a simple counter in produced pdf names? Maybe use a "special" placeholder for "auto save" in pdf filename? What I am interested in, is to know exactly which is the order that the pdfs have been produced. If for example 10 prints sent at about the same time to my pdf24 virtual printer queue, then 10 pdfs will be produced with file names 1,2,3,4...10. The order these pdfs will be produced will be the exact order that the prints arrived to the pdf24 virtual printer queue.
Please note that date and time placeholders are not sufficient, because in the same second two prints might arrive, so they are not really unique. $id is unique but it is not numeric and you cannot tell what pdf produced before another. So basically what I need is a numeric equivalent for the $id.
Thanks a lot
2026-11-02 at 08:14 #65974PDF24 SupportModeratorHello,
there is no counter placeholder for the file name of the automatic saving. The available placeholders are
$fileName(name of the print job),$fileDir,$printerName,$owner,$idand date and time values such as%Y-%m-%d %H-%M-%S. As you noticed,$idis unique, but you cannot sort by it.A way to get numbered files today: in the settings of the PDF printer under Auto Save, enter a fixed Filename without date and time, e.g.
Print, and switch off Overwrite existing file. If a file with this name already exists, PDF24 adds a number:Print.pdf,Print (1).pdf,Print (2).pdfand so on. Each new file gets the first free number, so the numbering only continues as long as the earlier files stay in the folder. With very many files of the same name, saving becomes slower, because PDF24 checks the numbers one after another.Thank you for the suggestion of a real counter placeholder, we will add it to our list.
The PDF printers are described in the manual: https://creator.pdf24.org/manual/11/#6-pdf-printers
2026-11-06 at 16:14 #66814PDF24 SupportModeratorHello,
a short advance note: the next version of PDF24 Creator adds the placeholder $counter for the file name of the automatic saving. It is a running number that counts up with every file this PDF printer saves, separately for each user, so the numbers show the order in which the PDFs were saved. ${counter:4} writes it with leading zeros (0001, 0002, ...), and it does not depend on which files are still in the folder.
We will post here once it is released.
2026-11-11 at 21:05 #66942PDF24 SupportModeratorHello,
the change announced above is now released in PDF24 Creator 11.34.0, available since 11 November 2026: https://tools.pdf24.org/en/creator
The file name of the automatic saving now knows the placeholder $counter, a running number that counts up with every file this PDF printer saves, separately for each user. ${counter:4} writes it with leading zeros (0001, 0002, ...), independent of which files are still in the folder.
-
AuthorPosts
- You must be logged in to reply to this topic.