(HELP) AutoSaveFileCmd: Open generated PDF automatically after saving

Home Forums PDF24 Creator General (HELP) AutoSaveFileCmd: Open generated PDF automatically after saving

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #64412
    adrian422
    Participant

    Hello,

    I am currently configuring PDF24 Creator 11.30.1 x64 for a silent/machine-wide installation.

    The PDF24 printer is configured with:

    <code class="language-reg">[HKEY_LOCAL_MACHINE\SOFTWARE\PDF24\Services\PDF]
    "Handler"="autoSave"
    "AutoSaveDir"="C:\\Temp\\PDF24Test"
    "AutoSaveFilename"="%Y-%m-%d %H-%M-%S $fileName"
    "AutoSaveUseFileCmd"=dword:00000001
    

    Automatic saving works correctly.

    I also verified that AutoSaveFileCmd is executed. For example:

    <code class="language-reg">"AutoSaveFileCmd"="cmd.exe /c echo TEST >> C:\\Temp\\pdf24-command.txt"
    

    creates the file successfully.

    I also verified that ${file} is substituted correctly. It contains the complete generated PDF path, for example:

    <code class="language-text">C:\Temp\PDF24Test\2026-09-14 12-49-10 -Lorem ipsum dolor sit amet, consete - Notepad.pdf
    

    My problem is that I want to automatically open the generated PDF with the user's default PDF application after saving.

    I have tried:

    <code class="language-reg">"AutoSaveFileCmd"="\"C:\\Program Files\\Adobe\\Acrobat DC\\Acrobat\\Acrobat.exe\" \"${file}\""
    

    and even:

    <code class="language-reg">"AutoSaveFileCmd"="\"C:\\Program Files\\Adobe\\Acrobat DC\\Acrobat\\Acrobat.exe\""
    

    but Acrobat does not open.

    I also tried:

    <code class="language-reg">"AutoSaveFileCmd"="cmd.exe /c start \"\" \"${file}\""
    

    but nothing happens.

    Interestingly, simple commands such as echo work, so AutoSaveFileCmd itself is definitely executed.

    Is there a recommended way in PDF24 Creator 11.30.1 to launch a GUI application / the user's default PDF viewer from AutoSaveFileCmd after an auto-save?

    Would using a separate PDF24 printer/service make a difference, or is there another command/syntax specifically intended for opening the generated PDF?

    Thank you!

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.