Why would you want to do it in such a cumbersome way? Windows 10 offers “Microsoft Print to PDF” as a print option. All you have to do is select that as the printer and name the document.
And then “Print to PDF” should appear for the file on your computer instead. 2.3 How to set Windows 10 up as a printer on Windows Mobile devices When you install Windows 10 on your Windows Mobile devices, Windows 10 automatically recognizes that the devices are printers, regardless of whether you enable it in settings like it's done in Windows 10. To set Windows 10 up as a printer on Windows Mobile devices Open the Settings app and go to Settings > System > Printers. Under Printers, check the box labeled In-built, print and save. Confirm that setup is successful. Select Save changes. The setting is now active, and you can use the Save page/page settings button to save the page information to an online printer or save a page to the system tray. Tip: The Windows Mobile version does not automatically recognize the devices as printers (it does so only in Settings >.