Microsoft Print to PDF

Vitor Pt 1 Reputation point
2021-02-21T19:59:44.157+00:00

Hello, is it possible to print any document to Microsoft Print to PDF Printer and give some Parameters to save the printed file in a custom Location and with a custom file Name automatically? Parameters Like: - PDF name ( and path ) - Open Outlook with attached PDF file This is very very important

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,948 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Carl Fan 6,836 Reputation points
    2021-02-22T07:10:45.883+00:00

    Hi,
    For Win10 system does not have this function or settings to do that.
    If you have add the Microsoft Print to PDF and set as default to open. As far as I know, you need to use some third party software or Script(C#/VB) to attain this purpose. As you mentioned file location or the file name Parameters should be added in third party software or Script.
    Some information below may be helpful.
    https://stackoverflow.com/questions/31896952/how-to-programmatically-print-to-pdf-file-without-prompting-for-filename-in-c-sh
    https://github.com/sumatrapdfreader/sumatrapdf/issues/1623
    Meanwhile, To help you better, I suggest that you could post this issue to github or VB forum. It will be more professional on code issue:
    https://github.com/microsoft
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral
    Hope this helps and please help to accept as Answer if the response is useful.
    Best Regards,
    Carl

    0 comments No comments

  2. Amin Dodin 1 Reputation point
    2021-02-22T16:55:10.267+00:00

    I know of 2 products that might be useful to you (Disclaimer: I work for their vendor):

    1. The LEADTOOLS ePrint printer driver can be configured (without having to write code) to save the printout with the same name as the print job title. For example, if the print job title was something like January_Accounting_Report, the output PDF can be made to automatically save as January_Accounting_Report.pdf. There’s also an option to use the default email client (such as Outlook) to automatically email the resulting printout file.
    2. If more advanced control is required, the LEADTOOLS Virtual Printer SDK integrates capturing print jobs with a set of powerful imaging APIs.

    If you would like to try one of the 2 products, they have free evaluation editions on the 2 websites I mentioned above.

    0 comments No comments

  3. Dieter Riekert 1 Reputation point
    2022-12-31T14:20:03.02+00:00

    I can offer more solutions...

    1. Use PrintMulti (printmulti) which is free for client operating systems
    2. Print to a fix file and copy the file to the desired position after printing. To print to a fix file add a "Local Port" with a file name like "c:\temp\output.pdf".
    3. If you print using code you can directly set the output file. That works well with "Microsoft Print To PDF" printers.
    4. Use a PDF printer like PDFCreator which allows to automate the name of the output file.
    0 comments No comments