Microsoft Print to PDF allows printing to a PDF file, which can be opened by an app on the server, e.g. Chrome or a PDF reader, or downloaded to the client.  Cameyo servers come with Microsoft Print to PDF by default, but these commands can be used to add it back if it has been removed.


Method 1

Use these two commands from an elevated Command Prompt:

dism /Online /Disable-Feature /FeatureName:"Printing-PrintToPDFServices-Features" /NoRestart

dism /Online /Enable-Feature /FeatureName:"Printing-PrintToPDFServices-Features" /NoRestart


Note: it may seem counterintuitive to Disable when the printer is not present, but that is the way it works.



Method 2

Use this command from an elevated Command Prompt:

rundll32.exe printui.dll,PrintUIEntry /if /f "C:\Windows\System32\spool\tools\Microsoft Print To PDF\prnms009.inf" /r "PORTPROMPT:" /m "Microsoft Print To PDF" /b "Microsoft Print to PDF"  /u /Y