PDF printer auto-save: keep the original document name as file name

Home › Forums › PDF24 Creator › PDF printer auto-save: keep the original document name as file name

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #4099
    PDF24
    Guest

    How to keep original file name when using auto save?

    When I print a PDF using the Auto-Save feature, the file name it gives is based on the printing time (ex. 2013-11-08 10-04-49). How to make it to keep the original name?

    Thanks

    #4100
    Anonymous
    Guest

    Hi,

    normally you can use the following auto save format:

    %Y-%m-%d %H-%M-%S $fileName

    %Y = Year like 2013
    %m = Month like 11
    %d = Day like 01
    %H = Hour like 16
    %M = Minutes like 59
    %S = Seconds like 34
    $fileName = Name of the original file if available

    The last placeholder $fileName stands for the file name which was determined from the printer interface.

    If the name is available then the placeholder will be replace with the original file name. If the name is not available, then the placeholder is simply removed.

    #4101
    Anonymous
    Guest

    Dear all,
    it's possible to autosave with progressive number.
    for example paolo001, paolo002, paolo003, etc...
    thanks in advance for your help

    #4102
    Anonymous
    Guest

    (English)
    Hello. You can set the file name from the program that launches printing.
    Examples of filenames :
    Invoice - 20015-0001
    Balance of 01/01/2014 to 06/01/2142
    Customers low : 31- 1-2015
    This is because the name generated by default is always the same and would need automatically change before printing.
    Thank You

    (Español)
    Hola. Es posible establecer el nombre del fichero desde el programa que lanza la impresión.
    Ejemplos de nombres de ficheros :
    Invoice-20015-0001
    Balance del 1-1-2014 al 1-6-2142
    Clientes bajas al: 31- 1-2015
    Esto es debido a que el nombre que se genera por defecto es siempre el mismo y necesitaria cambiarlo automáticamente antes de imprimirlo.
    Gracias

    #66284
    PDF24 Support
    Moderator

    Hello,

    an update for today's readers (PDF24 Creator 11):

    • In the settings of the PDF printer under Auto Save, the placeholder $fileName in the Filename field is the name of the print job. The printing program sets it, usually from the document name. If you enter only $fileName as Filename, the PDF gets exactly this name, without date and time.
    • If the program cannot set a suitable job name, but you can put text into the printed document: since version 11.31.0 the PDF printer can read control codes. Enable Recognize control codes in the printed document for the printer, and a line like @@fn:Invoice-2015-0001@@ in the document sets the file name. The codes can also sit on a separate last page that PDF24 removes. Details: https://creator.pdf24.org/manual/11/#62-control-codes-in-printed-documents
    • There is no counter placeholder (paolo001, paolo002, ...). If Overwrite existing file is switched off and the name already exists, PDF24 adds a number: paolo.pdf, paolo (1).pdf, paolo (2).pdf. More on this: https://help.pdf24.org/en/?p=60482 A real counter is on our to-do list.
    #66813
    PDF24 Support
    Moderator

    Hello,

    a short advance note on the progressive number (paolo001, paolo002, ...): the next version of PDF24 Creator adds a counter placeholder for the file name of the automatic saving. $counter counts up with every saved file of this PDF printer, separately for each user, and ${counter:3} writes it with leading zeros, so the file name paolo${counter:3} gives paolo001.pdf, paolo002.pdf and so on.

    We will post here once it is released.

    #66941
    PDF24 Support
    Moderator

    Hello,

    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. It counts up with every file this PDF printer saves, separately for each user, and ${counter:3} writes it with leading zeros, so the file name paolo${counter:3} gives paolo001.pdf, paolo002.pdf and so on.

    Detailed guide: After printing: where is my PDF? Saving automatically

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.