Thanks for posting your question in the Microsoft Q&A forum.
You can add a Print to File printer as a Microsoft XPS Document Writer under Microsoft List.
If needed, you can download the XPS Document Writer driver files from the Microsoft website.
[https://learn.microsoft.com/en-us/windows/win32/printdocs/microsoft-xps-document-writer](https://learn.microsoft.com/en-us/windows/win32/printdocs/microsoft-xps-document-writer
)
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **