I had an issue recently where a fresh install of Windows 11 24H2 was unable to use the Microsoft Print to PDF printer. It was showing as installed in Optional Features, but it just wasn’t there.
After removing it from Optional Features to reinstall it, it was unable to be reinstalled, and returned an error 0x800F0922.
Googling this error showed it was a fairly generic windows update installer error and there was nothing specific to the Print to PDF printer.
Digging a bit deeper, the .inf files for the printer simply weren’t there on disk. There should have been an inf file sitting there as C:\WINDOWS\System32\DriverStore\FileRepository\prnms009.inf_amd64_97613c6f44514bba
In the FileRepository folder, there was a prnms008.inf and a prnms010.inf, but no prnms009.inf.
As it turns out, the solution was to install the September 30 preview update manually – KB5043178
https://www.catalog.update.microsoft.com/Search.aspx?q=KB5043178
There were two updates to download for this update – I initially tried installing just the windows11.0-kb5043178 update first, but that gave me an error. I then installed the windows11.0-kb5043080 update and after that was installed I could finally install the windows11.0-kb5043178 update.
Once both of these updates were installed, I could go back into Optional Features (start > run > optionalfeatures) and tick the checkbox to install the Print to PDF feature. This installed in a few seconds and the printer was there, ready to go.