Programmatically provide a filepath as input file for “Microsoft Print to PDF” printer
问题 Desired result I want to print a file to a new PDF using the Windows 10 printer "Microsoft Print to PDF" which is installed by default. When you select this printer as your default printer and use your context menu on a file and select Print , it only asks for a save directory and name. After that, it immediately converts to PDF and saves the file. As long as MS Office is installed, this works for Word, Excel, PowerPoint file types. But also for common image types and normal text files. I'd