PDF printer: set file name and folder from my application without a dialog

Home › Forums › PDF24 Creator › PDF printer: set file name and folder from my application without a dialog

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4318
    PDF24
    Guest

    Is it possible on PDF24 Assistant to send a file path and name so that the user will not be asked to choose a path and file name when they click the save button

    when you click the save PDF you are presented with a dialogue box to choose where you want to save the file
    i wish to by pass this preventing the user from choosing his own path and file name and rather use one from within my application

    #4319
    Anonymous
    Guest

    Hi,

    the PDF24 Creator tries to find out the name and file of the document. If the path was submitted as document name of the print job then the PDF24 printer is able to find out the name and path of that file. If the path is not available then we can't find the name and path.

    But in any case the user has to select the directory and name where the newly created PDF file is to save. The directory and name will be preselected with the determined ones via the printer interface.

    #66296
    PDF24 Support
    Moderator

    Hello,

    for today's readers: this is possible now without any dialog.

    1. In the PDF24 settings, page "PDF Printer", select the printer (you can also install an additional PDF printer just for your application with "Install a PDF printer").
    2. Set "PDF Printer Tool" to "Automatically save documents after printed".
    3. Under "Auto Save" set the "Output Directory" and the "Filename". The file name can contain placeholders, e.g. $fileName (the document name of the print job, which your application sets when printing) and date/time such as %Y-%m-%d.

    If the name or folder must differ per document, your application can print control codes into the document, e.g. @@fn:Invoice-123@@ and @@df:C:\Invoices\@@, after ticking "Recognize control codes in the printed document" for that printer (since version 11.31.0). Details and all codes: https://creator.pdf24.org/manual/11/#62-control-codes-in-printed-documents

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