'Custom Print driver - The system cannot find the file specified

I have a custom print driver with all the source code. When I sign the driver using Inf2Cat.exe and signtool.exe, it generates a catalog file and signs the driver. I can install this driver using the "add printer.." wizard. But I am trying to print I am getting this error.

The document Print Document, owned by scharlie failed to print on printer PRINTER123. Try to print the document again, or restart the print spooler. 
Data type: NT EMF 1.008. Size of the spool file in bytes: 1024. Number of bytes printed: 0. Total number of pages in the document: 1. Number of pages printed: 0. Client computer: \devtab
Win32 error code returned by the print processor: 2. 
The system cannot find the file specified.

How do I know what file it is talking about? Is there a way I can turn on any verbose logging for a driver. This is our proprietary driver. I have a legacy working version of it when not signed. I am given this task of signing the driver. I have windows 10 enterprise 21H2 and WDK is not loading for that version. I cannot create a driver package in Visual studio so I am signing it using Inf2cat and signtool.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source