title: Windows 10: Simple way to print a PDF-file without the save-dialog
body: <p>I'm trying to print the PDf-file(s) in a certain folder (or alternatively just print the files one-by-one) using for example <strong>Micorosft Print to PDF</strong> in order to create <strong>flattened versions</strong>. However when using Microsoft Print to PDF i need to specify the ouput-file's name and path. Is there any way to circumvent this or an alternative virtual printer specialized on such a job?</p>
  <p><strong>What I've already tried:</strong></p>
  <p><a href="https://stackoverflow.com/questions/44619926/windows-10-print-to-pdf-from-command-line">Windows 10 Print to PDF from command-line</a> and <a href="https://stackoverflow.com/questions/19124808/printing-pdfs-from-windows-command-line">Printing PDFs from Windows Command Line</a></p>
  <p>These approches try to use the command prompt (personally favoured by me aswell, as it allows to create a batch-file and automate the process completely), but unfortunately the programs/printers listed in those posts are either not free or show a save-file-dialog aswell. Furthermore they are quite slow (even though this is not my main focus). So far, <a href="https://web.archive.org/web/20210201225443/https://www.columbia.edu/%7Eem36/pdftoprinter.html" rel="nofollow noreferrer">PDFtoPrinter</a> has been the best solution, though it shows the save-file-dialog aswell...</p>
  <p>Another idea I got from <a href="https://stackoverflow.com/a/67488626/17702417">this</a> post is to create a (VBA-/PowerShell-)script, but I'm not very experienced at that.</p>
  <p>Any way to print just one PDF via the console and then making a loop or maybe even hard-coding the names would suffice aswell. I can easily rename the files for example to 1.pdf, 2.pdf, 3.pdf, ...</p>
  <p>At this point I've tried so much but there has to be a way to get this running. Any help would be greatly appreciated!</p>