Since QuickBooks relies on Windows printing components to generate PDFs, can you confirm whether Microsoft Print to PDF is present and working? Also, what is the exact QuickBooks error message when attempting to create the invoice PDF?
If neither Microsoft XPS Document Writer nor Microsoft Print to PDF appears in Printers & scanners, that may indicate a broader Windows printing subsystem issue rather than a QuickBooks-specific problem.
If Microsoft Print to PDF works but QuickBooks still fails, the issue may be with QuickBooks' PDF components. Intuit provides a QuickBooks Print & PDF Repair Tool specifically for PDF-generation errors.